code: def prepare_config(args):
      audiodir = Path(args.audiodir).expanduser()
      clean_list = Path(args.clean_list).expanduser().resolve()
      noise_list = Path(args.noise_list).expanduser().resolve()
      outfile = Path(args.outfile).expanduser().resolve()
  
      speech_data = construct_path_dict(clean_list)
      noise_data = construct_path_dict(noise_list)
      audios = {
          folder: {
              path.with_suffix("").name: str(path)
              for path in (audiodir / folder).rglob(
                  "*." + args.audio_format
              )
          }
          for folder in ("mix", "noreverb_ref", "reverb_ref")
      }
      keys = audios["mix"].keys()
      assert (
          keys
          == audios["noreverb_ref"].keys()
          == audios["reverb_ref"].keys()
      )
  
      with outfile.open("w") as out:
          for name in keys:
              (
                  path_clean,
                  path_noise,
                  path_rir,
                  start_time,
                  snr,
                  scale,
              ) = name.split("#")
              path_clean = speech_data[path_clean]
              path_noise = noise_data[path_noise]
              out.write(
                  f"{path_clean} {start_time} {path_noise} "
                  f"/path/{args.tag}/{path_rir}.wav {snr} {scale}\n"
              )
  
imports: import argparse
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_config(args) without return types