code: def testAutoTracingInDeubMode(self):
      ops.reset_default_graph()
      x = lib.BuildFullModel()
  
      with profile_context.ProfileContext(
          test.get_temp_dir(), debug=True
      ):
          with session.Session() as sess:
              self.evaluate(variables.global_variables_initializer())
              for _ in range(10):
                  self.evaluate(x)
                  for f in gfile.ListDirectory(test.get_temp_dir()):
                      # Warm up, no tracing.
                      self.assertFalse("run_meta" in f)
              self.evaluate(x)
              self.assertTrue(
                  gfile.Exists(
                      os.path.join(test.get_temp_dir(), "run_meta_11")
                  )
              )
              gfile.Remove(
                  os.path.join(test.get_temp_dir(), "run_meta_11")
              )
              # fetched already.
              self.evaluate(x)
              for f in gfile.ListDirectory(test.get_temp_dir()):
                  self.assertFalse("run_meta" in f)
  
file_path: tensorflow/tensorflow/python/profiler/profile_context_test.py
imports: import os
  from tensorflow.python.client import session
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.profiler import option_builder
  from tensorflow.python.profiler import profile_context
  from tensorflow.python.profiler.internal import model_analyzer_testlib
label_desc: Use image node_id 2 for calling the ProfilerContextTest obj's underlying member method code with example usage: obj.testAutoTracingInDeubMode() without return types