code: def prepare_data(args):
      audiodirs = [
          Path(audiodir).expanduser().resolve()
          for audiodir in args.audiodirs
      ]
      if args.uttid_prefix:
          audios = {
              "_".join(
                  [
                      args.uttid_prefix,
                      str(path.parent.stem),
                      str(path.stem),
                  ]
              ): str(path)
              for audiodir in audiodirs
              for path in audiodir.rglob("*.wav")
          }
      else:
          audios = {
              "_".join([path.parent, path.stem]): str(path)
              for audiodir in audiodirs
              for path in audiodir.rglob("*.wav")
          }
      with DatadirWriter(args.outdir) as writer:
          for uttid, utt_path in audios.items():
              writer["wav.scp"][uttid] = utt_path
              writer["spk1.scp"][uttid] = utt_path
              writer["utt2spk"][uttid] = uttid
  
imports: import argparse
  from pathlib import Path
  from espnet2.fileio.datadir_writer import DatadirWriter
label_desc: Use image node_id 1 for calling a global function with example usage: prepare_data(args) without return types