code: def process_subset(src_data, subset, check_func, fs, wav_dump):
      subfolder = os.listdir(src_data + "/musicxml")
      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 item in subfolder:
          name = item[:-4]
          if not check_func(name):
              continue
          utt_id = "{}{}".format(UTT_PREFIX, pack_zero(name))
  
          cmd = "sox {}.wav -c 1 -t wavpcm -b 16 -r {} {}_bits16.wav".format(
              os.path.join(src_data, "wav", name),
              fs,
              os.path.join(wav_dump, name),
          )
          os.system(cmd)
  
          wavscp.write(
              "{} {}\n".format(
                  utt_id,
                  os.path.join(wav_dump, "{}_bits16.wav".format(name)),
              )
          )
          utt2spk.write("{} {}\n".format(utt_id, UTT_PREFIX))
          label_info, pho_info = process_pho_info(
              os.path.join(
                  src_data, "mono_label", "{}.lab".format(name)
              )
          )
          label_scp.write("{} {}\n".format(utt_id, label_info))
          musicxmlscp.write(
              "{} {}\n".format(
                  utt_id,
                  os.path.join(
                      src_data, "musicxml", "{}.xml".format(name)
                  ),
              )
          )
  
file_path: espnet/egs2/kiritan/svs1/local/dataset_split.py
imports: import argparse
  import os
  import shutil
label_desc: Use image node_id 7 for calling a global function with example usage: process_subset(src_data, subset, check_func, fs, wav_dump) without return types