code: def testBagOfWords(
      self,
      strings,
      expected_output_indices,
      expected_output_values,
      ngram_range=(1, 1),
      separator=" ",
  ):
      with tf.compat.v1.Graph().as_default():
          string_tensor = tf.constant(strings, dtype=tf.string)
          tokenized_tensor = tf.compat.v1.string_split(
              string_tensor, delimiter=separator
          )
          output_tensor = mappers.bag_of_words(
              tokens=tokenized_tensor,
              ngram_range=ngram_range,
              separator=separator,
          )
          with tf.compat.v1.Session():
              output = output_tensor.eval()
              self.assertAllEqual(
                  output.indices, expected_output_indices
              )
              self.assertAllEqual(output.values, expected_output_values)
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 11 for calling the MappersTest obj's underlying member method code with example usage: obj.testBagOfWords(strings, expected_output_indices, expected_output_values, ngram_range, separator) without return types