code: def write_wave(path, audio, sample_rate):
      """Writes a .wav file.
      Takes path, PCM audio data, and sample rate.
      """
      with contextlib.closing(wave.open(path, "wb")) as wf:
          wf.setnchannels(1)
          wf.setsampwidth(2)
          wf.setframerate(sample_rate)
          wf.writeframes(audio)
  
file_path: speechbrain/recipes/ZaionEmotionDataset/emotion_diarization/datasets/vad.py
imports: import collections
  import webrtcvad
  import contextlib
  import wave
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: write_wave(path, audio, sample_rate) without return types