code: def test_count_numpy_gen(self):
      def get_words():
          yield np.array(["aaa", "bb", "c"])
          yield np.array(["aaa", "aaa"])
          yield np.array(["c"])
  
      counts = learner.count_words(get_words())
  
      self.assertEqual(
          counts, collections.Counter({"aaa": 3, "bb": 1, "c": 2})
      )
  
imports: import collections
  import logging
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow_text.tools.wordpiece_vocab import wordpiece_tokenizer_learner_lib
label_desc: Use image node_id 2 for calling the CountWordsTest obj's underlying member method code with example usage: obj.test_count_numpy_gen() without return types