code: def replace_module(module):
      name = module.__name__
      assert name not in _sys_modules  # noqa: S101
      _sys_modules[name] = sys.modules[name]
      sys.modules[name] = module
  
imports: import os
  import sys
  import inspect
  import textwrap
label_desc: Use image node_id 22 for calling a global function with example usage: replace_module(module) without return types