code: def test_DecoratorTest(self):
      @self.monitor
      def func(x):
          return x + 1
  
      self.assertEqual(func(1), 2)
      self.assertTrue(
          MetricsTest.gauge.get_cell(
              metrics.MonitorBoolGauge._SUCCESS_LABEL
          ).value()
      )
  
file_path: model-optimization/tensorflow_model_optimization/python/core/keras/metrics_test.py
imports: import mock
  import tensorflow
  from tensorflow.python.eager import monitoring
  from tensorflow_model_optimization.python.core.keras import metrics
label_desc: Use image node_id 2 for calling the MetricsTest obj's underlying member method code with example usage: obj.test_DecoratorTest() and returns: unknown