code: def import_name(modulename, name=None):
      
      if name is None:
          modulename, name = modulename.rsplit(':', 1)
      module = __import__(modulename, globals(), {}, [name])
      return getattr(module, name)
docs: Import identifier ``name`` from module ``modulename``.
  
          If ``name`` is omitted, ``modulename`` must contain the name after the
          module path, delimited by a colon.
  
          Parameters:
              modulename (str): Fully qualified module name, e.g. ``x.y.z``.
              name (str): Name to import from ``modulename``.
  
          Returns:
              object: Requested object.