code: def testToTFIDFNotSmooth(self):
      term_freq = tf.SparseTensor(
          [[0, 0], [0, 1], [0, 2], [1, 0], [1, 3]],
          [(3 / 5), (1 / 5), (1 / 5), (1 / 2), (1 / 2)],
          [2, 4],
      )
      reduced_term_freq = tf.constant([[2, 1, 1, 1]])
      output_tensor = mappers._to_tfidf(
          term_freq, reduced_term_freq, tf.constant(2), False
      )
      log_2_over_1 = 1.6931471
      self.assertSparseOutput(
          expected_indices=[[0, 0], [0, 1], [0, 2], [1, 0], [1, 3]],
          expected_values=[
              (3 / 5),
              (1 / 5) * log_2_over_1,
              (1 / 5) * log_2_over_1,
              (1 / 2),
              (1 / 2) * log_2_over_1,
          ],
          expected_shape=[2, 4],
          actual_sparse_tensor=output_tensor,
          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 23 for calling the MappersTest obj's underlying member method code with example usage: obj.testToTFIDFNotSmooth() without return types