code: def convert(syllable):
      # expansion of o -> uo
      syllable = re.sub(r"([bpmf])o$", r"\1uo", syllable)
      # syllable = syllable.replace("bo", "buo").replace("po", "puo").replace("mo", "muo").replace("fo", "fuo")
      # expansion for iong, ong
      syllable = syllable.replace("iong", "veng").replace("ong", "ueng")
  
      # expansion for ing, in
      syllable = syllable.replace("ing", "ieng").replace("in", "ien")
  
      # expansion for un, ui, iu
      syllable = (
          syllable.replace("un", "uen")
          .replace("ui", "uei")
          .replace("iu", "iou")
      )
  
      # rule for variants of i
      syllable = (
          syllable.replace("zi", "zii")
          .replace("ci", "cii")
          .replace("si", "sii")
          .replace("zhi", "zhiii")
          .replace("chi", "chiii")
          .replace("shi", "shiii")
          .replace("ri", "riii")
      )
  
      # rule for y preceding i, u
      syllable = (
          syllable.replace("yi", "i")
          .replace("yu", "v")
          .replace("y", "i")
      )
  
      # rule for w
      syllable = syllable.replace("wu", "u").replace("w", "u")
  
      # rule for v following j, q, x
      syllable = (
          syllable.replace("ju", "jv")
          .replace("qu", "qv")
          .replace("xu", "xv")
      )
  
      return syllable
  
file_path: PaddleHub/modules/audio/voice_cloning/lstm_tacotron2/preprocess_transcription.py
imports: import argparse
  from pathlib import Path
  import pickle
  import re
  from parakeet.frontend import Vocab
  import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: convert(syllable) and returns: syllable