class_docstr: Augmenter that replaces words based on a given mapping
class_docstr_tok: ["Augmenter","that","replaces","words","based","on","a","given","mapping"]
code: def get_mapping(
      self, mapping: Optional[Union[str, Dict[str, Any]]]
  ) -> ContractionMapping:
      return ContractionMapping(mapping)
  
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 ContractionAugmenter obj's underlying member method code with example usage: obj.get_mapping(mapping) and returns: ContractionMapping