code: def test_scatter_feats(self):
      res = scatter_feats(
          output_shape=tf.constant([1, 3, 1]),
          sequence_feats=tf.constant(
              [
                  [[0.0], [1.0], [2.0], [3.0]],
                  [[4.0], [5.0], [6.0], [7.0]],
              ]
          ),
          scatter_vals=tf.constant(
              [
                  [[0, 4], [0, 1], [0, 2], [0, 5]],  # bos, 1, 2, eos
                  [[0, 4], [0, 2], [0, 5], [0, 6]],  # bos, 2, eos, pad.
              ]
          ),
      )
      assert tf.reduce_all(
          res
          == tf.constant(
              [[[0.0], [1.0], [(5 + 2) / 2]]], dtype=res.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 8 for calling the TestTableUtils obj's underlying member method code with example usage: obj.test_scatter_feats() without return types