class_docstr: Replace entity mention with entity with same entity types
code: def __init__(self, type="lowfreq", **kwargs):
      super().__init__()
      self.type = type
      if type == "lowfreq":
          self.type_dict = json_loader(download_if_needed(LOWFREQ))
      elif type == "multitype":
          self.type_dict = json_loader(download_if_needed(MULTI_TYPE))
      elif type == "sametype":
          self.type_dict = json_loader(download_if_needed(TYPES))
      else:
          raise ValueError("illegal type name")
  
file_path: textflint/textflint/generation/transformation/RE/swap_ent.py
imports: import random
  from ....common.settings import LOWFREQ, MULTI_TYPE, TYPES
  from ....common.utils.install import download_if_needed
  from ....common.utils.load import json_loader
  from ...transformation import Transformation
  from ....input.component.sample import RESample
label_desc: Use image node_id 1 to create a new SwapEnt object from inherited base classes: Transformation with example: obj = SwapEnt(type)