code: def reload(
      module,
      exclude=(
          *sys.builtin_module_names,
          "sys",
          "os.path",
          "builtins",
          "__main__",
          "numpy",
          "numpy._globals",
      ),
  ):
      """Recursively reload all modules used in the given module.  Optionally
      takes a list of modules to exclude from reloading.  The default exclude
      list contains modules listed in sys.builtin_module_names with additional
      sys, os.path, builtins and __main__, to prevent, e.g., resetting
      display, exception, and io hooks.
      """
      global found_now
      for i in exclude:
          found_now[i] = 1
      try:
          with replace_import_hook(deep_import_hook):
              return deep_reload_hook(module)
      finally:
          found_now = {}
  
file_path: catboost/contrib/python/ipython/py3/IPython/lib/deepreload.py
imports: import builtins
  from contextlib import contextmanager
  import importlib
  import sys
  from types import ModuleType
  from warnings import warn
  import types
label_desc: Use image node_id 9 for calling a global function with example usage: reload(module, exclude) and returns: deep_reload_hook