code: def testNaN(self):
      with self.session(graph=ops.Graph()):
          t1 = constant_op.constant(0.0)
          t2 = constant_op.constant(0.0)
          a = math_ops.div(t1, t2)
          check = numerics.add_check_numerics_ops()
          a = control_flow_ops.with_dependencies([check], a)
          with self.assertRaisesOpError("NaN"):
              self.evaluate(a)
  
imports: import numpy
  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 cond
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import numerics
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the NumericsTest obj's underlying member method code with example usage: obj.testNaN() without return types