code: def __process_data(data_folder: str, dst_folder: str):
      """
      To generate manifest
      Args:
          data_folder: source with wav files
          dst_folder: where manifest files will be stored
      Returns:
      """
      if not os.path.exists(dst_folder):
          os.makedirs(dst_folder)
      data_type = ["dev", "test", "train"]
      for data in data_type:
          dst_file = os.path.join(dst_folder, data + ".json")
          uttrances = []
          wav_dir = os.path.join(data_folder, "wav", data)
          transcript_file = os.path.join(
              data_folder, "transcript", data, "trans.txt"
          )
          trans_text = {}
          with open(transcript_file, "r", encoding="utf-8") as f:
              for line in f:
                  line = line.strip().split()
                  utterance_id, text = line[0], " ".join(line[1:])
                  trans_text[utterance_id] = text.upper()
          session_list = os.listdir(wav_dir)
          for sessions in session_list:
              cur_dir = os.path.join(wav_dir, sessions)
              for wavs in os.listdir(cur_dir):
                  audio_id = wavs.strip(".wav")
                  audio_filepath = os.path.abspath(
                      os.path.join(cur_dir, wavs)
                  )
                  duration = subprocess.check_output(
                      "soxi -D {0}".format(audio_filepath), shell=True
                  )
                  duration = float(duration)
                  text = trans_text[audio_id]
                  uttrances.append(
                      json.dumps(
                          {
                              "audio_filepath": audio_filepath,
                              "duration": duration,
                              "text": text,
                          },
                          ensure_ascii=False,
                      )
                  )
          with open(dst_file, "w") as f:
              for line in uttrances:
                  f.write(line + "\n")
  
imports: import argparse
  import json
  import os
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: __process_data(data_folder, dst_folder) without return types