code: def testValues(self):
      for dtype in [np.int32, np.int64, np.float32, np.float64]:
          values = _get_weak_tensor(
              np.array([-2, -1, 0, 1, 2], dtype=dtype)
          )
          outputs = nn_ops.leaky_relu(values)
          self.assertIsInstance(outputs, weak_tensor.WeakTensor)
  
          outputs = self.evaluate(outputs)
  
          tol = 2e-3 if dtype == np.float16 else 1e-6
          self.assertAllClose(
              outputs, [-0.4, -0.2, 0.0, 1.0, 2.0], rtol=tol, atol=tol
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import weak_tensor
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import weak_tensor_ops
  from tensorflow.python.ops import weak_tensor_test_util
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the LeakyReluTest obj's underlying member method code with example usage: obj.testValues() without return types