code: def _write_and_load_module(source):
      fp = os.path.join(test.get_temp_dir(), "testmod.py")
      with open(fp, "w") as f:
          f.write(source)
      spec = importlib.util.spec_from_file_location("testmodule", fp)
      test_module = importlib.util.module_from_spec(spec)
      spec.loader.exec_module(test_module)
      return test_module
  
imports: import importlib.util
  import os
  from absl.testing import flagsaver
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import test
  from tensorflow.python.tpu import tpu_test_wrapper
label_desc: Use image node_id 1 for calling a global function with example usage: _write_and_load_module(source) and returns: test_module