code: def run():
      if len(sys.argv) >= 2:
          python_args = set()
          for i, arg in enumerate(sys.argv[1:]):
              if arg.startswith("-"):
                  python_args.add(arg)
              else:
                  script = arg
                  sys.argv = sys.argv[i + 1 :]
                  break
  
          possible_args = [
              "-B",
              "-E",
              "-s",
              "-S",
              "-c",
              "-m",
          ]  # order is important
  
          args_diff = python_args - set(possible_args)
          if args_diff:
              print(
                  "{arg} is not implemented in huge_python".format(
                      arg=args_diff
                  ),
                  file=sys.stderr,
              )
  
          for p_arg in possible_args:
              if p_arg not in python_args:
                  continue
  
              if p_arg == "-B":
                  os.environ["PYTHONDONTWRITEBYTECODE"] = "1"
              elif p_arg == "-E":
                  _clean_env()
              elif p_arg == "-s":
                  pass
              elif p_arg == "-S":
                  sys.path = _remove_user_site(sys.path)
              elif p_arg == "-c":
                  exec(sys.argv[0])
                  sys.exit(0)
              elif p_arg == "-m":
                  runpy.run_module(sys.argv[0], run_name="__main__")
                  sys.exit(0)
  
          sys.path.insert(0, os.path.dirname(script))
          runpy.run_path(script, run_name="__main__")
      else:
          raise NotImplementedError
  
imports: from __future__ import print_function
  import os
  import sys
  import runpy
label_desc: Use image node_id 3 for calling a global function with example usage: run() without return types