code: def test_safecopy_modules(self):
      safecopy_modules(
          ["TestClass.test_function"], {"TestClass": TestClass}
      )
      original_functions = registry.get(ORIGINAL_PATCH_FUNCTIONS_KEY)
      self.assertTrue("TestClass.test_function" in original_functions)
  
      TestClass.test_function = lambda: False
      restore_saved_modules({"TestClass": TestClass})
      self.assertTrue(TestClass.test_function())
  
file_path: mmf/tests/utils/test_patch.py
imports: import unittest
  from mmf.common.registry import registry
  from mmf.utils.patch import ORIGINAL_PATCH_FUNCTIONS_KEY, restore_saved_modules, safecopy_modules
label_desc: Use image node_id 2 for calling the TestUtilsPatch obj's underlying member method code with example usage: obj.test_safecopy_modules() without return types