docstr: Tests access of sequence elements by index.
docstr_tok: ["Tests","access","of","sequence","elements","by","index","."]
code: def test_sequence_indices(self):
      """Tests access of sequence elements by index."""
      dim = 5
      indices = tf.range(10, dtype=tf.int32)
      sample_direct = sample_halton_sequence_lib.sample_halton_sequence(
          dim, num_results=10, randomized=False
      )
      sample_from_indices = (
          sample_halton_sequence_lib.sample_halton_sequence(
              dim, sequence_indices=indices, randomized=False
          )
      )
      self.assertAllClose(
          self.evaluate(sample_direct),
          self.evaluate(sample_from_indices),
          rtol=1e-6,
      )
  
file_path: probability/tensorflow_probability/python/mcmc/sample_halton_sequence_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import monte_carlo
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import sample_halton_sequence_lib
label_desc: Use image node_id 3 for calling the HaltonSequenceTest obj's underlying member method code with example usage: obj.test_sequence_indices() without return types