code: def resampling_for_folder(in_folder, out_folder):
      """
      Resamples all the audios from a certain folder to 16kHz
      """
      files = os.listdir(in_folder)
      for file_name in files:
          try:
              sound = AudioSegment.from_file(
                  os.path.join(in_folder, file_name), format="wav"
              )
              sound = sound.set_frame_rate(16000)
              sound.export(
                  os.path.join(out_folder, file_name), format="wav"
              )
          except Exception as e:
              logger.info(e)
  
file_path: speechbrain/recipes/ZaionEmotionDataset/emotion_diarization/datasets/prepare_RAVDESS.py
imports: import numpy
  import os
  import random
  from pydub import AudioSegment
  import json
  from datasets.vad import vad_for_folder
  from pathlib import Path
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: resampling_for_folder(in_folder, out_folder) without return types