code: def _reload() -> None:
      global _reload_attempted
      _reload_attempted = True
      for fn in _reload_hooks:
          fn()
      if sys.platform != "win32":
          # Clear the alarm signal set by
          # ioloop.set_blocking_log_threshold so it doesn't fire
          # after the exec.
          signal.setitimer(signal.ITIMER_REAL, 0, 0)
      # sys.path fixes: see comments at top of file.  If __main__.__spec__
      # exists, we were invoked with -m and the effective path is about to
      # change on re-exec.  Reconstruct the original command line to
      # ensure that the new process sees the same path we did.
      if _autoreload_is_main:
          assert _original_argv is not None
          spec = _original_spec
          argv = _original_argv
      else:
          spec = getattr(sys.modules["__main__"], "__spec__", None)
          argv = sys.argv
      if spec and spec.name != "__main__":
          # __spec__ is set in two cases: when running a module, and when running a directory. (when
          # running a file, there is no spec). In the former case, we must pass -m to maintain the
          # module-style behavior (setting sys.path), even though python stripped -m from its argv at
          # startup. If sys.path is exactly __main__, we're running a directory and should fall
          # through to the non-module behavior.
          #
          # Some of this, including the use of exactly __main__ as a spec for directory mode,
          # is documented at https://docs.python.org/3/library/runpy.html#runpy.run_path
          argv = ["-m", spec.name] + argv[1:]
  
      if not _has_execv:
          subprocess.Popen([sys.executable] + argv)
          os._exit(0)
      else:
          os.execv(sys.executable, [sys.executable] + argv)
  
imports: import os
  import sys
  import functools
  import importlib.abc
  import os
  import pkgutil
  import sys
  import traceback
  import types
  import subprocess
  import weakref
  from tornado import ioloop
  from tornado.log import gen_log
  from tornado import process
  from typing import Callable, Dict, Optional, List, Union
label_desc: Use image node_id 7 for calling a global function with example usage: _reload() without return types