code: def import_from_path(path):
      """Import module from absolute path
  
      Arguments
      ---------
      path : str, pathlib.Path
          The path to the module to import
  
      Returns
      -------
      module
          The loaded module
  
      Implementation taken from:
      https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly
      """
      path = pathlib.Path(path)
      modulename = path.with_suffix("").name
      spec = importlib.util.spec_from_file_location(modulename, path)
      module = importlib.util.module_from_spec(spec)
      spec.loader.exec_module(module)
      return module
  
imports: import logging
  import subprocess
  import importlib
  import pathlib
label_desc: Use image node_id 1 for calling a global function with example usage: import_from_path(path) and returns: module