code: def testDisabled(self):
      ops.reset_default_graph()
      x = lib.BuildFullModel()
      with profile_context.ProfileContext(
          test.get_temp_dir(), enabled=False
      ) as pctx:
          with session.Session() as sess:
              self.evaluate(variables.global_variables_initializer())
              for _ in range(10):
                  self.evaluate(x)
          self.assertTrue(pctx.profiler is None)
          self.assertTrue(
              getattr(session.BaseSession, "profile_context", None)
              is None
          )
  
      with profile_context.ProfileContext(test.get_temp_dir()) as pctx:
          with session.Session() as sess:
              self.evaluate(variables.global_variables_initializer())
              for _ in range(10):
                  self.evaluate(x)
          self.assertFalse(pctx.profiler is None)
          self.assertFalse(
              getattr(session.BaseSession, "profile_context", None)
              is None
          )
  
file_path: tensorflow-upstream/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 3 for calling the ProfilerContextTest obj's underlying member method code with example usage: obj.testDisabled() without return types