code: def process_subset(src_data, subset, check_func, fs, wav_dump):
      subfolder = os.listdir(src_data)
      makedir(subset)
      wavscp = open(
          os.path.join(subset, "wav.scp"), "w", encoding="utf-8"
      )
      utt2spk = open(
          os.path.join(subset, "utt2spk"), "w", encoding="utf-8"
      )
      label_scp = open(
          os.path.join(subset, "label"), "w", encoding="utf-8"
      )
      musicxmlscp = open(
          os.path.join(subset, "score.scp"), "w", encoding="utf-8"
      )
  
      for folder in subfolder:
          if not os.path.isdir(os.path.join(src_data, folder)):
              continue
          if not check_func(folder):
              continue
          if folder == "background_noise":
              continue
          utt_id = folder
  
          cmd = "sox {}_song.wav -c 1 -t wavpcm -b 16 -r {} {}_bits16.wav".format(
              os.path.join(src_data, folder, folder),
              fs,
              os.path.join(wav_dump, folder),
          )
          os.system(cmd)
  
          wavscp.write(
              "{} {}\n".format(
                  utt_id,
                  os.path.join(
                      wav_dump, "{}_bits16.wav".format(folder)
                  ),
              )
          )
          utt2spk.write("{} {}\n".format(utt_id, UTT_PREFIX))
          label_info, pho_info = process_pho_info(
              os.path.join(src_data, folder, "{}.lab".format(folder))
          )
          label_scp.write("{} {}\n".format(utt_id, label_info))
          musicxmlscp.write(
              "{} {}\n".format(
                  utt_id,
                  os.path.join(
                      src_data, folder, "{}.musicxml".format(folder)
                  ),
              )
          )
  
file_path: espnet/egs2/pjs/svs1/local/dataset_split.py
imports: import argparse
  import os
  import shutil
label_desc: Use image node_id 6 for calling a global function with example usage: process_subset(src_data, subset, check_func, fs, wav_dump) without return types