code: def test_sample_sobol_with_tent_transform(self):
      dim = 6
      num_results = 8
      num_digits = 3  # ceil(log2(num_results))
  
      expected = tf.constant(
          [
              [0.00, 0.00, 0.00, 0.00, 0.00, 0.00],
              [1.00, 1.00, 1.00, 1.00, 1.00, 1.00],
              [0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
              [0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
              [0.25, 0.75, 0.75, 0.25, 0.25, 0.75],
              [0.75, 0.25, 0.25, 0.75, 0.75, 0.25],
              [0.75, 0.75, 0.75, 0.25, 0.75, 0.25],
              [0.25, 0.25, 0.25, 0.75, 0.25, 0.75],
          ],
          dtype=tf.float32,
      )
  
      actual = qmc.digital_net_sample(
          qmc.sobol_generating_matrices(dim, num_results, num_digits),
          num_results,
          num_digits,
          apply_tent_transform=True,
          validate_args=True,
      )
  
      with self.subTest("Values"):
          self.assertAllClose(
              self.evaluate(actual), self.evaluate(expected), rtol=1e-6
          )
      with self.subTest("DType"):
          self.assertEqual(actual.dtype, expected.dtype)
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/digital_net_test.py
imports: import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 7 for calling the DigitalNetTest obj's underlying member method code with example usage: obj.test_sample_sobol_with_tent_transform() without return types