code: def write_wav(wav_file, pcm_data, audio_format=DEFAULT_FORMAT):
      # wav_file is already a file-pointer here
      with wave.open(wav_file, "wb") as wav_file_writer:
          wav_file_writer.setframerate(audio_format.rate)
          wav_file_writer.setnchannels(audio_format.channels)
          wav_file_writer.setsampwidth(audio_format.width)
          wav_file_writer.writeframes(pcm_data)
  
imports: import collections
  import ctypes
  import io
  import math
  import numpy
  import os
  import pyogg
  import tempfile
  import wave
  from .helpers import LimitingPool
  from collections import namedtuple
  from .io import open_remote, remove_remote, copy_remote, is_remote_path
label_desc: Use image node_id 19 for calling a global function with example usage: write_wav(wav_file, pcm_data, audio_format) without return types