code: def list_from_attr(vals, attr, **kwargs):
      """Generate a list with all one the items' attributes' in <vals>. The attribute is specified as <attr>."""
      if "default" in kwargs:
          return [v.get(attr, kwargs["default"]) for v in vals]
      else:
          return [v[attr] for v in vals]
  
imports: import xml.etree.ElementTree
  from collections import OrderedDict
  import json
  import struct
  import imghdr
  import numpy
  from .geom import pt, rect
label_desc: Use image node_id 16 for calling a global function with example usage: list_from_attr(vals, attr) and returns: unknown, unknown