class_docstr: Transforms an input by replacing its numbers.
class_docstr_tok: ["Transforms","an","input","by","replacing","its","numbers","."]
code: def homophones(self, word, n):
      pinyin = lazy_pinyin(word)
      try:
          result = viterbi(
              hmm_params=hmmparams, observations=pinyin, path_num=n + 1
          )
      except Exception:
          return []
      ret = []
      for i in result:
          if "".join(i.path) != word:
              ret.append("".join(i.path))
      return ret
  
file_path: textflint/textflint/generation/transformation/UTCN/cn_homophones.py
imports: from pypinyin import lazy_pinyin
  from Pinyin2Hanzi import DefaultHmmParams
  from Pinyin2Hanzi import viterbi
  from ...transformation import CnWordSubstitute
label_desc: Use image node_id 4 for calling the CnHomophones obj's underlying member method code with example usage: obj.homophones(word, n) and returns: ret, list