code: def test_average_word_heuristic_avg_word_length_check(self):
      text_avg_word_length_3_8 = "Hello this is some text"
      self.assertFalse(
          nlsg.AverageWordHeuristicNLClassifier(
              avg_word_length_min=3.5, avg_word_length_max=3.7
          ).classify(text_avg_word_length_3_8)
      )
      self.assertTrue(
          nlsg.AverageWordHeuristicNLClassifier(
              avg_word_length_min=3.7, avg_word_length_max=3.9
          ).classify(text_avg_word_length_3_8)
      )
      self.assertFalse(
          nlsg.AverageWordHeuristicNLClassifier(
              avg_word_length_min=3.9, avg_word_length_max=4.1
          ).classify(text_avg_word_length_3_8)
      )
  
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 4 for calling the NaturalLanguageStatsGeneratorTest obj's underlying member method code with example usage: obj.test_average_word_heuristic_avg_word_length_check() without return types