code: def _from_import(
      name: str, package=None, mod_globals=None, from_list=(), level=0
  ):
      """Handle absolute and relative from_import statement."""
      module_exist = name != ""
      name = "." * level + name
      module = _import_module(name, package)
      for entry_name, entry_asname in from_list:
          if entry_name == "*":
              if "__all__" in module.__dict__.keys():
                  _all = {
                      k: v
                      for (k, v) in module.__dict__.items()
                      if k in module.__dict__["__all__"]
                  }
              else:
                  _all = {
                      k: v
                      for (k, v) in module.__dict__.items()
                      if not k.startswith("__")
                  }
              for k, v in _all.items():
                  mod_globals[k] = v
              continue
          alias = entry_name if entry_asname is None else entry_asname
          # Handles attributes inside module
          try:
              mod_globals[alias] = module.__dict__[entry_name]
              # In the case this is a module from a package
          except KeyError:
              if module_exist:
                  in_name = f"{name}.{entry_name}"
              else:
                  in_name = name + entry_name
              mod_globals[alias] = _import_module(in_name, package)
      return module
  
file_path: ivy/ivy/utils/_importlib.py
imports: import ivy
  import sys
  from importlib.util import resolve_name, module_from_spec
  from ivy.utils.backend import ast_helpers
label_desc: Use image node_id 2 for calling a global function with example usage: _from_import(name, package, mod_globals, from_list, level) and returns: module