code: def main():
      chao = False
      delimit = ""
      dialect = "n"
      nosuper = False
      glottal = False
      phonemic = False
      output_ortho = ""
      eight = False
      tokenize = False
  
      # Command line options
      parser = argparse.ArgumentParser(description="python vPhon.py")
      parser.add_argument(
          "-d",
          "--dialect",
          choices=["n", "c", "s", "o"],
          help="Specify dialect region (Northern, Central, Southern) or spelling pronunciation",
          type=str.lower,
      )
      parser.add_argument(
          "-c",
          "--chao",
          action="store_true",
          help="Phonetize tones as Chao values",
      )
      parser.add_argument(
          "-g",
          "--glottal",
          action="store_true",
          help="No glottal stops in underlying forms",
      )
      parser.add_argument(
          "-8",
          "--eight",
          action="store_true",
          help="Encode tones as 1-8",
      )
      parser.add_argument(
          "-n",
          "--nosuper",
          action="store_true",
          help="No superscripts anywhere",
      )
      parser.add_argument(
          "-p",
          "--phonemic",
          action="store_true",
          help="Underlying transcriptions after Pham (2006)",
      )
      parser.add_argument(
          "-m",
          "--delimit",
          action="store",
          type=str,
          help="produce delimited output (bi ca = .b.i.33. .k.a.33.)",
      )
      parser.add_argument(
          "-o",
          "--ortho",
          action="store",
          type=str,
          dest="output_ortho",
          help="output orthography as well as IPA (quốc: wok⁴⁵)",
      )
      parser.add_argument(
          "-t",
          "--tokenize",
          action="store_true",
          help="Preserve underscores or hyphens in tokenized inputs (anh_ta = anhᴬ¹_taᴬ¹)",
      )
      args = parser.parse_args()
  
      wd = dirname(__file__)
      outputs_folder = join(dirname(wd), "outputs")
      with open(join(outputs_folder, "syllables.txt")) as f:
          lines = f.readlines()
          items = [line.strip() for line in lines]
          words = sorted(items, key=vietnamese_sort_key)
      results = ""
      i = 1
      for word in words:
          if word in set(["gĩữ", "by"]):
              continue
          ipa = to_ipa(word)
          results += f"{i},{word},{ipa}\n"
          i += 1
      with open(
          join(outputs_folder, "vphon_syllables_ipa.txt"), "w"
      ) as f:
          f.write(results)
  
file_path: underthesea/examples/text_normalize/tools/vphone.py
imports: from __future__ import absolute_import
  import sys, re, io, string, argparse
  from os.path import join, dirname
  from types import SimpleNamespace
  from underthesea.utils.vietnamese_ipa import vietnamese_sort_key
  from vphone_rules import *
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types