class_docstr: Transforms input by common abbreviations in TwitterType.
  
  :param str mode: Twitter type, only support ['at', 'url', 'random']
class_docstr_tok: ["Transforms","input","by","common","abbreviations","in","TwitterType",".",":","param","str","mode",":","Twitter","type",",","only","support","[","'at","'",",","'url","'",",","'random","'","]"]
code: def __init__(self, mode="random", **kwargs):
      super().__init__()
      self.mode = mode
      if mode and mode not in ["at", "url", "random"]:
          raise ValueError(f"{mode} not one of ['at', 'url', 'random']")
      self.twitter_dic = json_loader(download_if_needed(TWITTER_PATH))
  
file_path: textflint/textflint/generation/transformation/UT/twitter_type.py
imports: import random
  import string
  import numpy
  from ..transformation import Transformation
  from ....common.settings import TWITTER_PATH
  from ....common.utils.load import json_loader
  from ....common.utils.install import download_if_needed
label_desc: Use image node_id 1 to create a new TwitterType object from inherited base classes: Transformation with example: obj = TwitterType(mode)