code: def test_context_manager(self):
      counter = monitoring.Counter(
          "test/ctxmgr", "test context manager", "slot"
      )
      with monitoring.MonitoredTimer(counter.get_cell("long")):
          time.sleep(0.01)
          with monitoring.MonitoredTimer(counter.get_cell("short")):
              time.sleep(0.01)
      self.assertGreater(
          counter.get_cell("long").value(),
          counter.get_cell("short").value(),
      )
  
file_path: tensorflow-upstream/tensorflow/python/eager/monitoring_test.py
imports: import time
  from tensorflow.python.eager import monitoring
  from tensorflow.python.eager import test
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 8 for calling the MonitoringTest obj's underlying member method code with example usage: obj.test_context_manager() without return types