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, _ = random.halton.sample(
          dim, num_results=10, randomized=False
      )
      sample_from_indices, _ = random.halton.sample(
          dim, sequence_indices=indices, randomized=False
      )
      self.assertAllClose(
          self.evaluate(sample_direct),
          self.evaluate(sample_from_indices),
          rtol=1e-6,
      )
  
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 3 for calling the HaltonSequenceTest obj's underlying member method code with example usage: obj.test_sequence_indices() without return types