code: def process(args):
      args.output_root.mkdir(exist_ok=True)
  
      # load units
      units = {}
      with open(args.in_unit) as f:
          for line in f:
              unit_seq, utt_id = line.strip().rsplit(" ", 1)
              utt_id = int(utt_id[6:-1])  # remove "(None-"
              units[utt_id] = unit_seq
  
      with open(args.in_audio) as f, open(
          args.output_root / f"{args.in_audio.stem}.txt", "w"
      ) as o:
          f.readline()
          for i, line in enumerate(tqdm(f.readlines())):
              audio, _ = line.strip().split("\t", 1)
              sample_id = Path(audio).stem
              o.write(f"{sample_id}|{units[i]}\n")
  
imports: import argparse
  from pathlib import Path
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: process(args) without return types