code: def test_two_dimensional_projection(self):
      # This test fails for Halton sequences, where two-dimensional projections of
      # high dimensional samples are perfectly correlated. So with Halton samples,
      # the integral below is incorrecly computed to be 1/3 rather than the
      # correct 1/4.
      dim = 170
      n = 1000
      sample = random.sobol.sample(dim, n)
      x = self.evaluate(sample[:, dim - 2])
      y = self.evaluate(sample[:, dim - 1])
      corr = np.corrcoef(x, y)[1, 0]
      self.assertAllClose(corr, 0.0, atol=0.05)
      self.assertAllClose((x * y).mean(), 0.25, rtol=0.05)
  
file_path: tf-quant-finance/tf_quant_finance/math/random_ops/sobol/sobol_test.py
imports: import numpy
  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 SampleSobolSequenceTest obj's underlying member method code with example usage: obj.test_two_dimensional_projection() without return types