docstr: Tests Sobol samples.
docstr_tok: ["Tests","Sobol","samples","."]
code: def test_sobol(self):
      """Tests Sobol samples."""
      # The number of initial points of the Sobol sequence to skip
      skip = 1000
      for dtype in [np.float32, np.float64]:
          sample = tff_rnd.uniform(
              dim=5,
              sample_shape=[100],
              random_type=tff_rnd.RandomType.SOBOL,
              skip=skip,
              dtype=dtype,
          )
          expected_samples = tff_rnd.sobol.sample(
              dim=5, num_results=100, skip=skip, dtype=dtype
          )
          self.assertAllClose(sample, expected_samples)
          self.assertEqual(sample.dtype.as_numpy_dtype, dtype)
  
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 3 for calling the UniformTest obj's underlying member method code with example usage: obj.test_sobol() without return types