code: def setUp(self):
      super().setUp()
      test_spec: lit_types.Spec = {"text": lit_types.TextSegment()}
      self.model = testing_utils.RegressionModelForTesting(test_spec)
      # Dataset is only used for spec in word_replacer so define once
      self.dataset = lit_dataset.Dataset(
          spec=test_spec, examples=[{"text": "blank"}]
      )
      self.generator = word_replacer.WordReplacer()
  
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 1 for calling the WordReplacerTest obj's underlying member method code with example usage: obj.setUp() without return types