code: def test_replacement(
      self,
      example: lit_types.JsonDict,
      config: lit_types.JsonDict,
      expected: list[lit_types.JsonDict],
  ):
      generated = self.generator.generate(
          example, self.model, self.dataset, config
      )
      self.assertCountEqual(generated, expected)
  
file_path: lit/lit_nlp/components/word_replacer_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  from lit_nlp.components import word_replacer
  from lit_nlp.lib import testing_utils
label_desc: Use image node_id 4 for calling the WordReplacerTest obj's underlying member method code with example usage: obj.test_replacement(example, config, expected) without return types