code: def global_import(name):
      p = __import__(name, globals(), locals(), level=1)
      lst = p.__all__ if "__all__" in dir(p) else dir(p)
      if lst:
          del globals()[name]
          for k in lst:
              globals()[k] = p.__dict__[k]
              __all__.append(k)
  
imports: from pkgutil import iter_modules
  import os
  import os.path
label_desc: Use image node_id 1 for calling a global function with example usage: global_import(name) without return types