code: def testGlobalClipWithNonfinite(self):
      self._testNonFiniteClippingByGlobalNorm(
          [[-3.0, 0.0, 0.0], [float("inf"), 0.0, 0.0]], 4.0
      )
      self._testNonFiniteClippingByGlobalNorm(
          [[-3.0, 0.0, 0.0], [float("-inf"), 0.0, 0.0]], 4.0
      )
      self._testNonFiniteClippingByGlobalNorm(
          [[-3.0, 0.0, 0.0], [float("nan"), 0.0, 0.0]], 4.0
      )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import numerics
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the ClipOpsTest obj's underlying member method code with example usage: obj.testGlobalClipWithNonfinite() without return types