code: def main(args):
      root = Path(args.data_root).absolute()
      lang = args.lang
      split = args.split
  
      cur_root = root / f"en-{lang}"
      assert (
          cur_root.is_dir()
      ), f"{cur_root.as_posix()} does not exist. Skipped."
  
      dataset = MUSTC(root.as_posix(), lang, split)
      output = Path(args.output).absolute()
      output.mkdir(exist_ok=True)
      f_text = open(output / f"{split}.{lang}", "w")
      f_wav_list = open(output / f"{split}.wav_list", "w")
      for waveform, sample_rate, _, text, _, utt_id in tqdm(dataset):
          sf.write(
              output / f"{utt_id}.wav",
              waveform.squeeze(0).numpy(),
              samplerate=int(sample_rate),
          )
          f_text.write(text + "\n")
          f_wav_list.write(str(output / f"{utt_id}.wav") + "\n")
  
imports: import argparse
  import logging
  from pathlib import Path
  import soundfile
  from examples.speech_to_text.prep_mustc_data import MUSTC
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: main(args) without return types