code: def test_tent_transform(self):
      test_cases = [
          (tf.float16, 5e-3),
          (tf.float32, 1e-6),
          (tf.float64, 1e-12),
      ]
  
      for dtype, tolerance in test_cases:
          expected = tf.constant(
              [0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.8, 0.6, 0.4, 0.2, 0.0],
              dtype=dtype,
          )
          actual = utils.tent_transform(
              tf.constant(
                  [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1],
                  dtype=dtype,
              )
          )
  
          with self.subTest("Values"):
              self.assertAllClose(
                  self.evaluate(actual),
                  self.evaluate(expected),
                  rtol=tolerance,
              )
          with self.subTest("DType"):
              self.assertEqual(actual.dtype, expected.dtype)
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/utils_test.py
imports: import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 4 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_tent_transform() without return types