code: def add_submodule(mod, submod, fullname, subname):
      """mod.{subname} = submod"""
      if mod is None:
          return  # Nothing to do here.
  
      if submod is None:
          submod = sys.modules[fullname]
  
      setattr(mod, subname, submod)
  
      return
  
file_path: catboost/contrib/python/ipython/py2/IPython/lib/deepreload.py
imports: from __future__ import print_function
  from contextlib import contextmanager
  import imp
  import sys
  from types import ModuleType
  from warnings import warn
  from IPython.utils.py3compat import builtin_mod, builtin_mod_name
label_desc: Use image node_id 5 for calling a global function with example usage: add_submodule(mod, submod, fullname, subname) without return types