class_docstr: Unit tests for alert-class objects.
code: def testInfNanMonitor(self):
      alert = debug_events_monitors.InfNanAlert(
          1234,
          "FooOp",
          1,
          size=1000,
          num_neg_inf=5,
          num_pos_inf=10,
          num_nan=20,
          execution_index=777,
          graph_execution_trace_index=888,
      )
      self.assertEqual(alert.wall_time, 1234)
      self.assertEqual(alert.op_type, "FooOp")
      self.assertEqual(alert.output_slot, 1)
      self.assertEqual(alert.size, 1000)
      self.assertEqual(alert.num_neg_inf, 5)
      self.assertEqual(alert.num_pos_inf, 10)
      self.assertEqual(alert.num_nan, 20)
      self.assertEqual(alert.execution_index, 777)
      self.assertEqual(alert.graph_execution_trace_index, 888)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import debug_events_monitors
  from tensorflow.python.debug.lib import debug_events_reader
  from tensorflow.python.debug.lib import dumping_callback
  from tensorflow.python.debug.lib import dumping_callback_test_lib
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the AlertDataObjectsTest obj's underlying member method code with example usage: obj.testInfNanMonitor() without return types