code: def change(self, text: str, case: Optional[str] = None) -> str:
      case = case or self.case
      if case == "lower":
          return text.lower()
      elif case == "upper":
          return text.upper()
      elif case == "title":
          return text.title()
  
      return self.change(
          text, self.rng.choice(["lower", "upper", "title"])
      )
  
file_path: AugLy/augly/text/augmenters/case.py
imports: import math
  from typing import List, Optional, Union
  import numpy
  from augly.text.augmenters.utils import rejoin_words_and_whitespace, split_words_on_whitespace
label_desc: Use image node_id 2 for calling the CaseChanger obj's underlying member method code with example usage: obj.change(text, case) and returns: self, text, text, text