code: def _testClipIndexedSlicesByValue(
      self,
      values,
      indices,
      shape,
      clip_value_min,
      clip_value_max,
      expected,
  ):
      with self.session():
          values = constant_op.constant(values)
          indices = constant_op.constant(indices)
          shape = constant_op.constant(shape)
          # IndexedSlices mode
          indexed_slices = indexed_slices_lib.IndexedSlices(
              values, indices, shape
          )
          clipped = clip_ops.clip_by_value(
              indexed_slices, clip_value_min, clip_value_max
          )
          # clipped should be IndexedSlices
          self.assertIsInstance(
              clipped, indexed_slices_lib.IndexedSlices
          )
  
      self.assertAllClose(clipped.values, expected)
  
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 9 for calling the ClipTest obj's underlying member method code with example usage: obj._testClipIndexedSlicesByValue(values, indices, shape, clip_value_min, clip_value_max, expected) without return types