code: def test_lattice_rule_sample_with_sequence_indices(self):
      indices = [2, 3, 6, 9, 11, 14]
  
      expected = tf.constant(
          [
              [0.1250, 0.3750, 0.1250, 0.6250, 0.8750, 0.1250],
              [0.1875, 0.0625, 0.1875, 0.4375, 0.3125, 0.6875],
              [0.3750, 0.1250, 0.3750, 0.8750, 0.6250, 0.3750],
              [0.5625, 0.1875, 0.5625, 0.3125, 0.9375, 0.0625],
              [0.6875, 0.5625, 0.6875, 0.9375, 0.8125, 0.1875],
              [0.8750, 0.6250, 0.8750, 0.3750, 0.1250, 0.8750],
          ],
          dtype=tf.float32,
      )
  
      actual = qmc.lattice_rule_sample(
          self.generating_vectors(),
          6,
          16,
          sequence_indices=tf.constant(indices, dtype=tf.int32),
          validate_args=True,
      )
  
      with self.subTest("Values"):
          self.assertAllClose(
              self.evaluate(actual), self.evaluate(expected), rtol=1e-6
          )
      with self.subTest("DType"):
          self.assertEqual(actual.dtype, expected.dtype)
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/lattice_rule_test.py
imports: 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 LatticeRuleTest obj's underlying member method code with example usage: obj.test_lattice_rule_sample_with_sequence_indices() without return types