code: def test_slice_by_table_indices(self):
      gi = slice_by_table_indices(
          tf.constant(
              [
                  [
                      [0, 0],
                      [0, 1],
                      [0, 2],
                      [0, 3],
                      [0, 4],
                      [0, 5],
                      [0, 6],
                  ],
                  [
                      [1, 0],
                      [1, 1],
                      [1, 2],
                      [1, 3],
                      [1, 4],
                      [1, 5],
                      [1, 6],
                  ],
              ]
          ),
          tf.constant(
              [
                  [
                      [True, False, True, False, True, False, True],
                      [False, True, False, True, False, True, False],
                  ],
                  [
                      [True, True, True, True, True, True, True],
                      [False, False, False, False, False, False, False],
                  ],
              ],
              dtype=tf.bool,
          ),
          eos_pad=tf.convert_to_tensor([0, 99]),
          bos_pad=tf.convert_to_tensor([0, 100]),
          pad_val=tf.convert_to_tensor([0, 101]),
          other_end=tf.constant(
              [[0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]]
          ),
          include_mask=True,
      )
      assert tf.reduce_all(
          gi["values"]
          == tf.constant(
              [
                  [
                      [0, 100],
                      [0, 0],
                      [0, 2],
                      [0, 4],
                      [0, 6],
                      [0, 99],
                      [0, 101],
                      [0, 101],
                      [0, 101],
                  ],
                  [
                      [0, 100],
                      [1, 1],
                      [1, 3],
                      [1, 5],
                      [0, 99],
                      [0, 101],
                      [0, 101],
                      [0, 101],
                      [0, 101],
                  ],
                  [
                      [0, 100],
                      [0, 0],
                      [0, 1],
                      [0, 2],
                      [0, 3],
                      [0, 4],
                      [0, 5],
                      [0, 6],
                      [0, 99],
                  ],
              ],
              dtype=gi["values"].dtype,
          )
      )
  
imports: import os
  import unittest
  from finetune import SequenceLabeler
  from finetune.base_models import TableRoBERTa
  from finetune.base_models.bert.table_utils import batch_packing, get_gather_indices, slice_by_table_indices, gather_col_vals, scatter_feats, get_summary_values, chunk_ragged_tensor
  import tensorflow
label_desc: Use image node_id 4 for calling the TestTableUtils obj's underlying member method code with example usage: obj.test_slice_by_table_indices() without return types