code: def testSplitTFIDF(self):
      tfidfs = tf.SparseTensor(
          [[0, 0], [0, 1], [2, 1], [2, 2]],
          [0.23104906, 0.19178806, 0.14384104, 0.34657359],
          [3, 4],
      )
  
      out_index, out_weight = mappers._split_tfidfs_to_outputs(tfidfs)
      self.assertSparseOutput(
          expected_indices=[[0, 0], [0, 1], [2, 0], [2, 1]],
          expected_values=[0, 1, 1, 2],
          expected_shape=[3, 2],
          actual_sparse_tensor=out_index,
          close_values=False,
      )
      self.assertSparseOutput(
          expected_indices=[[0, 0], [0, 1], [2, 0], [2, 1]],
          expected_values=[
              0.23104906,
              0.19178806,
              0.14384104,
              0.34657359,
          ],
          expected_shape=[3, 2],
          actual_sparse_tensor=out_weight,
          close_values=True,
      )
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 24 for calling the MappersTest obj's underlying member method code with example usage: obj.testSplitTFIDF() without return types