code: def get_emotion(wav_path, annotations):
      """
      Get the emotion of an audio from its filepath
      """
      id = wav_path.split("/")[-1][:-4]
      return annotations[id]
  
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 6 for calling a global function with example usage: get_emotion(wav_path, annotations) and returns: annotations