code: def import_from(modulepath, objectname):
      """Wrapper for __import__ for nested objects."""
      path = modulepath.split(".")
      top = path.pop(0)
      parent = __import__(top)
      while len(path) > 0:
          parent = getattr(parent, path.pop(0))
      return getattr(parent, objectname)
  
file_path: lmfit-py/lmfit/jsonutils.py
imports: from base64 import b64decode, b64encode
  from io import StringIO
  import sys
  import warnings
  import numpy
  import uncertainties
label_desc: Use image node_id 2 for calling a global function with example usage: import_from(modulepath, objectname) and returns: getattr