code: def testCountDocsWithTerm(self):
      with tf.compat.v1.Graph().as_default():
          input_tensor = tf.SparseTensor(
              [[0, 0], [0, 1], [0, 2], [1, 0], [1, 3]],
              [(3 / 5), (1 / 5), (1 / 5), (1 / 2), (1 / 2)],
              [2, 4],
          )
          output_tensor = mappers._count_docs_with_term(input_tensor)
          with tf.compat.v1.Session():
              output = output_tensor.eval()
              self.assertAllEqual([[2, 1, 1, 1]], output)
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 20 for calling the MappersTest obj's underlying member method code with example usage: obj.testCountDocsWithTerm() without return types