code: def _resolve_relative_paths(module_globals):
      # We want to modify all the relevant lists so that the relative paths
      # are made fully qualified paths for the modules
      pkg_path = module_globals["__package__"]
      pkg_components = pkg_path.split(".")
  
      def resolve_path(class_path):
          # Converts a relative class_path to an absolute one considering that the
          # relative class_path is present in a package pkg_path
          if class_path[0] == ".":
              i = 1
              # Check for multiple "." at the start of the class_path
              while class_path[i] == ".":
                  i += 1
              if i > len(pkg_components):
                  raise ValueError(
                      "Path '%s' exits out of Metaflow module at %s"
                      % (class_path, pkg_path)
                  )
              return (
                  ".".join(
                      pkg_components[: -i + 1]
                      if i > 1
                      else pkg_components
                  )
                  + class_path[i - 1 :]
              )
          return class_path
  
      _set_ext_aliases(
          module_globals,
          list(
              map(
                  lambda p: (p[0], resolve_path(p[1])),
                  _get_ext_aliases(module_globals),
              )
          ),
      )
  
file_path: metaflow/metaflow/extension_support/integrations.py
imports: import importlib
  import traceback
  from metaflow.metaflow_config_funcs import from_conf
  from .None import _ext_debug, get_modules
label_desc: Use image node_id 4 for calling a global function with example usage: _resolve_relative_paths(module_globals) and returns: class_path, unknown