code: def append_path_after_vad(data_folder, id, list):
      """do vad and append the new path into the list
  
      Args:
          data_folder (str): the path to IEMOCAP
          id (str): id d'utterance
          list (list): which list to be put into
  
      Returns:
          list: new list after adding an element
      """
      file = get_path(data_folder, id)
      destin_folder = os.path.join(
          data_folder, "processed", id[:5] + id[-4]
      )
      if not os.path.exists(destin_folder):
          os.makedirs(destin_folder)
      if not os.path.exists(os.path.join(destin_folder, f"{id}.wav")):
          write_audio(file, os.path.join(destin_folder, f"{id}.wav"))
      if os.path.exists(os.path.join(destin_folder, f"{id}.wav")):
          list.append(os.path.join(destin_folder, f"{id}.wav"))
  
file_path: speechbrain/recipes/ZaionEmotionDataset/emotion_diarization/datasets/prepare_IEMOCAP.py
imports: import numpy
  import re
  import os
  import random
  from pydub import AudioSegment
  import json
  from datasets.vad import write_audio
  from pathlib import Path
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: append_path_after_vad(data_folder, id, list) without return types