code: def test_leaky_clip_by_value_forward(self):
      t = tf.Variable([1.0, 2.0, 3.0])
      # Test when min/max are scalar values.
      clip_min = [1.5]
      clip_max = [2.5]
      clip_t = leaky_clip_by_value.leaky_clip_by_value(
          t, clip_min, clip_max
      )
      self.assertAllEqual(clip_t.numpy(), [1.5, 2.0, 2.5])
      # Test when min/max are of same sizes as t.
      clip_min_array = [0.5, 2.5, 2.5]
      clip_max_array = [1.5, 3.0, 3.5]
      clip_t_2 = leaky_clip_by_value.leaky_clip_by_value(
          t, clip_min_array, clip_max_array
      )
      self.assertAllEqual(clip_t_2.numpy(), [1.0, 2.5, 3.0])
  
file_path: sonnet/sonnet/src/leaky_clip_by_value_test.py
imports: from absl.testing import parameterized
  from sonnet.src import leaky_clip_by_value
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 1 for calling the LeakyClipByValueTest obj's underlying member method code with example usage: obj.test_leaky_clip_by_value_forward() without return types