code: def __import_module_copy(module_name):
      """
      Returns a copy of an imported module so it can be modified
      without modifying future imports of the given module
      """
      starting_modules = sys.modules.copy()
  
      module_spec = importlib.util.find_spec(module_name)
      module = importlib.util.module_from_spec(module_spec)
      module_spec.loader.exec_module(module)
      new_modules = set(sys.modules) - set(starting_modules)
  
      del module_spec
      for m in new_modules:
          del sys.modules[m]
  
      return module
  
file_path: CrypTen/crypten/models/__init__.py
imports: import importlib.util
  import logging
  import sys
  import crypten.nn
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: __import_module_copy(module_name) and returns: module