code: def testControlFlowWhile(self):
      predicate = array_ops.placeholder(dtypes.bool, shape=[])
      _ = while_loop.while_loop(
          lambda _: predicate,
          lambda _: constant_op.constant([37.0]),
          [constant_op.constant([42.0])],
      )
      with self.assertRaisesRegex(
          ValueError,
          r"`tf\.add_check_numerics_ops\(\) is not compatible with "
          r"TensorFlow control flow operations such as `tf\.cond\(\)` "
          r"or `tf.while_loop\(\)`\.",
      ):
          numerics.add_check_numerics_ops()
  
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 6 for calling the NumericsTest obj's underlying member method code with example usage: obj.testControlFlowWhile() without return types