code: def testClipByValueWithIndexedSlicesClipped(self):
      values = [
          [[-3.0, 0.0, 0.0], [4.0, 0.0, 0.0]],
          [[0.0, 2.0, 0.0], [0.0, 0.0, -1.0]],
      ]
      indices = [2, 6]
      shape = [10, 2, 3]
      # [-2.0, 2.0]
      self._testClipIndexedSlicesByValue(
          values,
          indices,
          shape,
          -2.0,
          2.0,
          [
              [[-2.0, 0.0, 0.0], [2.0, 0.0, 0.0]],
              [[0.0, 2.0, 0.0], [0.0, 0.0, -1.0]],
          ],
      )
      # [1.0, 2.0]
      self._testClipIndexedSlicesByValue(
          values,
          indices,
          shape,
          1.0,
          2.0,
          [
              [[1.0, 1.0, 1.0], [2.0, 1.0, 1.0]],
              [[1.0, 2.0, 1.0], [1.0, 1.0, 1.0]],
          ],
      )
      # [-2.0, -1.0]
      self._testClipIndexedSlicesByValue(
          values,
          indices,
          shape,
          -2.0,
          -1.0,
          [
              [[-2.0, -1.0, -1.0], [-1.0, -1.0, -1.0]],
              [[-1.0, -1.0, -1.0], [-1.0, -1.0, -1.0]],
          ],
      )
  
imports: import numpy
  from tensorflow.python.eager import backprop
  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 test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the ClipTest obj's underlying member method code with example usage: obj.testClipByValueWithIndexedSlicesClipped() without return types