code: def prepare_music(root_dir, use_vocals):
      utt2vocals = {}
      utt2spk = {}
      utt2wav = {}
      num_good_files = 0
      num_bad_files = 0
      music_dir = os.path.join(root_dir, "music")
      for root, dirs, files in os.walk(music_dir):
          for file in files:
              file_path = os.path.join(root, file)
              if file.endswith(".wav"):
                  utt = str(file).replace(".wav", "")
                  utt2wav[utt] = file_path
              elif str(file) == "ANNOTATIONS":
                  (
                      utt2spk_part,
                      utt2vocals_part,
                  ) = process_music_annotations(file_path)
                  utt2spk.update(utt2spk_part)
                  utt2vocals.update(utt2vocals_part)
      utt2spk_str = ""
      utt2wav_str = ""
      for utt in utt2vocals:
          if utt in utt2wav:
              if use_vocals or not utt2vocals[utt]:
                  utt2spk_str = (
                      utt2spk_str + utt + " " + utt2spk[utt] + "\n"
                  )
                  utt2wav_str = (
                      utt2wav_str
                      + utt
                      + " sox -t wav "
                      + utt2wav[utt]
                      + " -r 8k -t wav - |\n"
                  )
              num_good_files += 1
          else:
              print("Missing file", utt)
              num_bad_files += 1
      print(
          "In music directory, processed",
          num_good_files,
          "files;",
          num_bad_files,
          "had missing wav data",
      )
      return utt2spk_str, utt2wav_str
  
imports: import os, sys
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_music(root_dir, use_vocals) and returns: utt2spk_str,  utt2wav_str