code: def pcm_to_np(pcm_data, audio_format=DEFAULT_FORMAT):
      """
      Converts PCM data (e.g. read from a wavfile) into a mono numpy column vector
      with values in the range [0.0, 1.0].
      """
      # Handles both mono and stero audio
      dtype = get_dtype(audio_format)
      samples = np.frombuffer(pcm_data, dtype=dtype)
  
      # Read interleaved channels
      nchannels = audio_format.channels
      samples = samples.reshape(
          (int(len(samples) / nchannels), nchannels)
      )
  
      # Convert to 0.0-1.0 range
      samples = samples.astype(np.float32) / np.iinfo(dtype).max
  
      # Average multi-channel clips into mono and turn into column vector
      return np.expand_dims(np.mean(samples, axis=1), axis=1)
  
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 32 for calling a global function with example usage: pcm_to_np(pcm_data, audio_format) and returns: np