code: def getattr_(obj, field):
      """Nested getattr"""
      try:
          flist = field.split(".")
          return reduce(getattr, flist, obj)
      except AttributeError:
          return None
  
label_desc: Use image node_id 1 for calling a global function with example usage: getattr_(obj, field) and returns: reduce, None