code: def test_badwords_filter(self):
      padding_text = """This page starts out with some text.
  Everything looks good at first, since these are sentences.
  But then, all of a sudden, there's a badword... or not?
  """
      final_sentences = [
          # Make sure ass in a longer word doesn't cause false-positive
          "I asked my friend for assistance polishing my cutlass.",
          # Check that a standard appearance of a badword triggers
          "He took the saddle and put it on his ass in preparation for travel.",
          # Make sure lowercasing works
          "Ass is one of several species of small, horse-like animals.",
          # Make sure it will still trigger when surrounded by punctuation.
          'Donkey is one synonym for the word "ass".',
          # Make sure it correctly handles different languages.
          "Ass is not a badword in Spanish.",
          "Culo is though.",
          "Ass and culo aren't badwords in German.",
      ]
      languages = [
          "en",
          "en",
          "en-latin",
          "en",
          "es",
          "es",
          "de",  # doesn't have badwords listed
      ]
      expected_outputs = [True, False, False, False, True, False, True]
      badwords_filter_fn = c4_utils.get_badwords_filter_fn(
          badwords={"en": ["ass"], "es": ["culo"]}
      )
  
      outputs = [
          badwords_filter_fn(  # pylint:disable=g-complex-comprehension
              PageFeatures(
                  text=padding_text + final_sentence, language=language
              )
          )
          for final_sentence, expected_output, language in zip(
              final_sentences, expected_outputs, languages
          )
      ]
  
      self.assertListEqual(expected_outputs, outputs)
  
imports: import collections
  import os
  import six
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.lazy_imports_lib import lazy_imports
  from tensorflow_datasets.text import c4_utils
label_desc: Use image node_id 10 for calling the C4UtilsTest obj's underlying member method code with example usage: obj.test_badwords_filter() without return types