docstr: Tests the randomization of the random.halton sequences.
docstr_tok: ["Tests","the","randomization","of","the","random.halton","sequences","."]
code: def test_randomized_qmc_basic(self):
      """Tests the randomization of the random.halton sequences."""
      # This test is identical to the example given in Owen (2017), Figure 5.
      dim = 20
      num_results = 2000
      replica = 5
      seed = 121117
  
      values = []
      for i in range(replica):
          sample, _ = random.halton.sample(
              dim, num_results=num_results, seed=seed + i
          )
          f = tf.reduce_mean(
              input_tensor=tf.reduce_sum(input_tensor=sample, axis=1)
              ** 2
          )
          values.append(self.evaluate(f))
      self.assertAllClose(
          np.mean(values), 101.6667, atol=np.std(values) * 2
      )
  
imports: import numpy
  from six.moves import range
  import tensorflow.compat.v2
  import tensorflow_probability
  from tensorflow.python.framework import test_util
  from tf_quant_finance.math import random
label_desc: Use image node_id 7 for calling the HaltonSequenceTest obj's underlying member method code with example usage: obj.test_randomized_qmc_basic() without return types