code: def testValue(self):
      with self.test_session():
          quadratic_linear_boundary = 2
          xs = np.array(
              [
                  -3.5,
                  -2.1,
                  2,
                  -1.9 - 1,
                  -0.5,
                  0,
                  0.5,
                  1,
                  1.9,
                  2,
                  2.1,
                  3.5,
              ]
          )
          ys = clipping_ops.huber_loss(
              xs, quadratic_linear_boundary
          ).eval()
  
      d = quadratic_linear_boundary
  
      # Check values for x <= -2
      ys_lo = ys[xs <= -d]
      xs_lo = xs[xs <= -d]
      expected_ys_lo = [0.5 * d**2 + d * (-x - d) for x in xs_lo]
      self.assertAllClose(ys_lo, expected_ys_lo)
  
      # Check values for x >= 2
      ys_hi = ys[xs >= d]
      xs_hi = xs[xs >= d]
      expected_ys_hi = [0.5 * d**2 + d * (x - d) for x in xs_hi]
      self.assertAllClose(ys_hi, expected_ys_hi)
  
      # Check values for x in (-2, 2)
      ys_mid = ys[np.abs(xs) < d]
      xs_mid = xs[np.abs(xs) < d]
      expected_ys_mid = [0.5 * x**2 for x in xs_mid]
      self.assertAllClose(ys_mid, expected_ys_mid)
  
file_path: trfl/trfl/clipping_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow.compat.v1
  from trfl import clipping_ops
label_desc: Use image node_id 1 for calling the HuberLossTest obj's underlying member method code with example usage: obj.testValue() without return types