docstr: Test that CheckNumericsV2 op shows sign of inf when nan is present.
docstr_tok: ["Test","that","CheckNumericsV2","op","shows","sign","of","inf","when","nan","is","present","."]
code: def testCheckNumericsV2PositiveInfAndNaN(self):
      """Test that CheckNumericsV2 op shows sign of inf when nan is present."""
      with self.session(graph=ops.Graph()):
          t1 = constant_op.constant([0.0, 1.0])
          t2 = constant_op.constant([0.0, 0.0])
          with self.assertRaisesRegex(
              errors.InvalidArgumentError,
              r"pass through test.*had \+Inf and NaN values",
          ):
              self.evaluate(
                  array_ops.check_numerics_v2(
                      t1 / t2, message="pass through test"
                  )
              )
  
imports: import os
  import numpy
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import debug_events_reader
  from tensorflow.python.debug.lib import debug_events_writer
  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 errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_debug_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 18 for calling the DebugNumericSummaryV2Test obj's underlying member method code with example usage: obj.testCheckNumericsV2PositiveInfAndNaN() without return types