code: def get_pcm_duration(pcm_buffer_size, audio_format=DEFAULT_FORMAT):
      """Calculates duration in seconds of a binary PCM buffer (typically read from a WAV file)"""
      return (
          get_num_samples(pcm_buffer_size, audio_format)
          / audio_format.rate
      )
  
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 6 for calling a global function with example usage: get_pcm_duration(pcm_buffer_size, audio_format) and returns: unknown