code: def runtime_import(object_path):
      
      obj_module, obj_element = object_path.rsplit(".", 1)
      loader = __import__(obj_module, globals(), locals(), [str(obj_element)])
      return getattr(loader, obj_element)
docs: Import at runtime.