code: def replace(self, text: str) -> Optional[str]:
      new_text = self.mapping.get(text.lower(), None)
      if new_text is not None and text[0].isupper():
          new_text = new_text.capitalize()
      return new_text
  
file_path: AugLy/augly/text/augmenters/contraction.py
imports: import json
  from typing import Any, Dict, List, Optional, Union
  import numpy
  from augly.text.augmenters.utils import detokenize, tokenize
  from augly.utils import pathmgr
label_desc: Use image node_id 2 for calling the ContractionMapping obj's underlying member method code with example usage: obj.replace(text) and returns: new_text