code: def generate_ipa_syllables():
      with open(join("outputs", "syllables.txt")) as f:
          items = f.readlines()
      items = [item.strip() for item in items]
      items = sorted(items, key=vietnamese_sort_key)
      data = []
      for item in items:
          text = item
          if text in set(["gĩữ", "by"]):
              continue
          syllable = Syllable(text)
          ipa = syllable.generate_ipa()
          components = syllable.matched.groupdict()
          C1 = components["C1"]
  
          row = {
              "syllable": text,
              "ipa": ipa,
              "C1": C1,
              "w": components["w"],
              "V": components["V"],
              "C2": components["C2"],
          }
          data.append(row)
      df = pd.DataFrame(data)
  
      # write Excel file
      df.index = df.index + 1
      df = df.reset_index()
      df.to_excel(join("outputs", "syllables_ipa.xlsx"), index=False)
  
      # write text file
      result = ""
      for index, row in df.iterrows():
          i = row["index"]
          text = row["syllable"]
          ipa = row["ipa"]
          result += f"{i},{text},{ipa}\n"
      with open(join("outputs", "syllables_ipa.txt"), "w") as f:
          f.write(result)
  
imports: from os.path import join
  import pandas
  from underthesea.file_utils import DATASETS_FOLDER
  from underthesea.utils.vietnamese_ipa import Syllable, vietnamese_sort_key
label_desc: Use image node_id 1 for calling a global function with example usage: generate_ipa_syllables() without return types