code: def rename_copyfile(src_path, dest_dir, prefix="", ext="*.wav"):
      """Copy and rename files from a source directory to a destination directory."""
      srcfiles = glob.glob(f"{src_path}/" + ext)
      for i in range(len(srcfiles)):
          dest_path = os.path.join(
              dest_dir, prefix + "_" + os.path.basename(srcfiles[i])
          )
          copyfile(srcfiles[i], dest_path)
  
file_path: speechbrain/recipes/DNS/noisyspeech_synthesizer/utils.py
imports: import os
  import csv
  from shutil import copyfile
  import glob
label_desc: Use image node_id 4 for calling a global function with example usage: rename_copyfile(src_path, dest_dir, prefix, ext) without return types