class_docstr: Transforms an input by replacing its words with synonyms provided by a
  homophone dictionary.
code: def __init__(self):
      # Get the absolute path of the homophone dictionary txt
      path = os.path.dirname(os.path.abspath(__file__))
      path_list = path.split(os.sep)
      path_list = path_list[:-2]
      path_list.append("shared/chinese_homophone_char.txt")
      homophone_dict_path = os.path.join("/", *path_list)
      homophone_dict = pd.read_csv(
          homophone_dict_path, header=None, sep="\n"
      )
      homophone_dict = homophone_dict[0].str.split("\t", expand=True)
      self.homophone_dict = homophone_dict
  
file_path: TextAttack/textattack/transformations/word_swaps/chn_transformations/chinese_homophone_character_swap.py
imports: import os
  import pandas
  import pinyin
  from .None import WordSwap
label_desc: Use image node_id 1 to create a new ChineseHomophoneCharacterSwap object from inherited base classes: WordSwap with example: obj = ChineseHomophoneCharacterSwap()