code: def testClipTensorByNorm(self):
      # Simple example
      self._testClipTensorByNorm(
          [[-3.0, 0.0, 0.0], [4.0, 0.0, 0.0]],
          4.0,
          [[-2.4, 0.0, 0.0], [3.2, 0.0, 0.0]],
      )
      # No clipping.
      self._testClipTensorByNorm(
          [[1.0, 0.0, 0.0], [1.0, 0.0, 0.0]],
          4.0,
          [[1.0, 0.0, 0.0], [1.0, 0.0, 0.0]],
      )
      # Zero norm
      self._testClipTensorByNorm(
          [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]],
          4.0,
          [[0.0, 0.0, 0.0], [0.0, 0.0, 0.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 6 for calling the ClipOpsTest obj's underlying member method code with example usage: obj.testClipTensorByNorm() without return types