code: def test_string_matcher(self):
      sm = OffensiveStringMatcher()
      for phrase in DEFINITELY_BAD:
          assert phrase in sm, f"`{phrase}` is offensive"
      for phrase in DEFINITELY_GOOD:
          assert phrase not in sm, f"`{phrase}` is not offensive"
  
file_path: ParlAI/tests/nightly/gpu/test_safety_modules.py
imports: from parlai.utils.safety import OffensiveLanguageClassifier
  from parlai.utils.safety import OffensiveStringMatcher
  from parlai.utils.testing import skipUnlessBPE, skipUnlessGPU
  import unittest
label_desc: Use image node_id 1 for calling the TestSafetyModules obj's underlying member method code with example usage: obj.test_string_matcher() without return types