docstr: Tests generator with avg word length heuristic.
docstr_tok: ["Tests","generator","with","avg","word","length","heuristic","."]
code: def test_nl_generator_avg_word_heuristic_match(self):
      """Tests generator with avg word length heuristic."""
      generator = nlsg.NLDomainInferringStatsGenerator(
          values_threshold=2
      )
      input_batches = [
          pa.array(
              [
                  [
                      "This looks correct.",
                      "This one too, it should be text.",
                  ],
                  ["xosuhddsofuhg123fdgosh"],
              ]
          ),
          pa.array(
              [["This should be text as well", "Here is another text"]]
          ),
          pa.array([["This should also be considered good."]]),
      ]
  
      self.assertCombinerOutputEqual(
          input_batches,
          generator,
          statistics_pb2.FeatureNameStatistics(
              custom_stats=[
                  statistics_pb2.CustomStatistic(
                      name="domain_info",
                      str="natural_language_domain {}",
                  ),
                  statistics_pb2.CustomStatistic(
                      name="natural_language_match_rate", num=0.8333333
                  ),
              ]
          ),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  import pyarrow
  from tensorflow_data_validation.statistics.generators import natural_language_domain_inferring_stats_generator
  from tensorflow_data_validation.utils import test_util
  from typing import Text
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 12 for calling the NaturalLanguageStatsGeneratorTest obj's underlying member method code with example usage: obj.test_nl_generator_avg_word_heuristic_match() without return types