code: def testEagerOpExecution(self):
      instrument = _NumpyFunctionCallback()
  
      x = constant_op.constant(6.0)
      op_callbacks.add_op_callback(instrument.callback)
      y = math_ops.square(math_ops.log(x))
      self.assertAllClose(y, np.square(np.log(6.0)))
  
      self.assertEqual(instrument.eager_op_types, [_LOG_OP, _SQUARE_OP])
      # Op names are unavailable under eager mode.
      self.assertEqual(instrument.eager_op_names, [None, None])
      self.assertEqual(instrument.eager_graphs, [None, None])
      self.assertEqual(len(instrument.eager_inputs), 2)
      self.assertEqual(len(instrument.eager_inputs[0]), 1)
      self.assertIsInstance(instrument.eager_inputs[0], tuple)
      self.assertEqual(instrument.eager_inputs[0][0], x)
      self.assertEqual(len(instrument.eager_inputs[1]), 1)
      self.assertIsInstance(instrument.eager_inputs[1], tuple)
      self.assertAllClose(instrument.eager_inputs[1][0], np.log(6.0))
      self.assertFalse(instrument.graph_op_types)
      self.assertFalse(instrument.graph_op_names)
      self.assertFalse(instrument.graph_attrs)
      self.assertFalse(instrument.graph_graphs)
      self.assertFalse(instrument.graph_inputs)
  
imports: import threading
  import numpy
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import op_callbacks
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.util import compat
label_desc: Use image node_id 4 for calling the OpCallbacksTest obj's underlying member method code with example usage: obj.testEagerOpExecution() without return types