code: def testClipByValue(self):
      for dtype in self.numeric_types - self.complex_types:
          test_cases = [
              (np.array([2, 4, 5], dtype=dtype), dtype(7)),  #
              (dtype(1), np.array([2, 4, 5], dtype=dtype)),  #
              (
                  np.array([-2, 7, 7], dtype=dtype),
                  np.array([-2, 9, 8], dtype=dtype),
              ),
          ]
          x = np.array([-2, 10, 6], dtype=dtype)
          for lower, upper in test_cases:
              self._testTernary(
                  gen_math_ops._clip_by_value,
                  x,
                  lower,
                  upper,
                  expected=np.minimum(np.maximum(x, lower), upper),
              )
  
imports: from absl.testing import parameterized
  import numpy
  import scipy.special
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the TernaryOpsTest obj's underlying member method code with example usage: obj.testClipByValue() without return types