code: def test_reduce_sum(self):
      values, row_index, col_index = self._prepare_tables()
      cell_index = ProductIndexMap(row_index, col_index)
      row_sum, _ = reduce_sum(values, row_index)
      col_sum, _ = reduce_sum(values, col_index)
      cell_sum, _ = reduce_sum(values, cell_index)
  
      # We use np.testing.assert_allclose rather than Tensorflow's assertAllClose
      np.testing.assert_allclose(
          row_sum.numpy(), [[6.0, 3.0, 8.0], [6.0, 3.0, 8.0]]
      )
      np.testing.assert_allclose(
          col_sum.numpy(), [[9.0, 8.0, 0.0], [4.0, 5.0, 8.0]]
      )
      np.testing.assert_allclose(
          cell_sum.numpy(),
          [
              [3.0, 3.0, 0.0, 2.0, 1.0, 0.0, 4.0, 4.0, 0.0],
              [1.0, 2.0, 3.0, 2.0, 0.0, 1.0, 1.0, 3.0, 4.0],
          ],
      )
  
imports: import copy
  import unittest
  import numpy
  import pandas
  from transformers import TF_MODEL_FOR_CAUSAL_LM_MAPPING, TF_MODEL_FOR_MASKED_LM_MAPPING, TF_MODEL_FOR_MULTIPLE_CHOICE_MAPPING, TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING, TF_MODEL_FOR_PRETRAINING_MAPPING, TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, TF_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING, TF_MODEL_FOR_TABLE_QUESTION_ANSWERING_MAPPING, TF_MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING, TapasConfig, TapasTokenizer, is_tf_available
  from transformers.models.auto import get_values
  from transformers.testing_utils import require_tensorflow_probability, require_tf, slow
  from transformers.utils import cached_property
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, ids_tensor, random_attention_mask
label_desc: Use image node_id 5 for calling the TFTapasUtilsTest obj's underlying member method code with example usage: obj.test_reduce_sum() without return types