class_docstr: Transforms an input to upper and lower case or capitalize case.
  A sentence can only be transformed into one sentence of each case at most.
docstr: :param case_type: case type, only support
      ['upper', 'lower', 'title', 'random']
docstr_tok: [":","param","case_type",":","case","type",",","only","support","[","'upper","'",",","'lower","'",",","'title","'",",","'random","'","]"]
code: def __init__(self, case_type="upper", **kwargs):
      r"""
      :param case_type: case type, only support
          ['upper', 'lower', 'title', 'random']
      """
      super().__init__()
      if case_type not in ["upper", "lower", "title", "random"]:
          raise ValueError(
              "Not support {0} type, plz ensure case_type in {1}".format(
                  case_type, ["upper", "lower", "title", "random"]
              )
          )
      self.case_type = case_type
  
file_path: textflint/textflint/generation/transformation/UT/word_case.py
imports: import random
  from ..transformation import Transformation
label_desc: Use image node_id 1 to create a new WordCase object from inherited base classes: Transformation with example: obj = WordCase(case_type)