docstr: Tests samples for halton random numbers.
docstr_tok: ["Tests","samples","for","halton","random","numbers","."]
code: def test_halton(self):
      """Tests samples for halton random numbers."""
      sample_shape = [
          2,
          3,
          1000,
      ]  # Need less samples than for the uniform case
      dim = 10
      sample = self.evaluate(
          tff_rnd.uniform(
              dim=dim,
              sample_shape=sample_shape,
              random_type=tff_rnd.RandomType.HALTON,
          )
      )
      np.testing.assert_array_equal(sample.shape, sample_shape + [dim])
      expected_mean = 0.5 * np.ones([dim])
      np.testing.assert_array_almost_equal(
          np.mean(sample, axis=(0, 1, 2)), expected_mean, decimal=3
      )
      expected_mean = 0.5 * np.ones(sample_shape[:-1] + [dim])
      np.testing.assert_array_almost_equal(
          np.mean(sample, axis=2), expected_mean, decimal=2
      )
  
file_path: tf-quant-finance/tf_quant_finance/math/random_ops/uniform_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 5 for calling the UniformTest obj's underlying member method code with example usage: obj.test_halton() without return types