code: def load_module(filename, name=None):
      if name is None:
          name, _ = os.path.splitext(os.path.basename(filename))
      module = type(sys)(name)
      module.__file__ = filename
      module.__package__ = name.rsplit(".", 1)[0]
      with open(filename) as f:
          preamble = "from __future__ import annotations"
          codelines = f.read().split("\n")
          for lineno, line in enumerate(codelines):
              match = line.strip().startswith
              if not any(map(match, "'\"#")):
                  codelines.insert(lineno, preamble)
                  break
          code = "\n".join(codelines)
          exec(code, module.__dict__)  # noqa: S102
      return module
  
imports: import os
  import sys
  import inspect
  import textwrap
label_desc: Use image node_id 21 for calling a global function with example usage: load_module(filename, name) and returns: module