code: def read(file):
      """
      Read a WAV file.
      Parameters
      ----------
      file : string or file object
          Either the name of a file or an open file pointer.
      Returns
      -------
      wav : wavio.Wav() instance
          The return value is an instance of the class `wavio.Wav`,
          with the following attributes:
              data : numpy array
                  The array containing the data.  The shape of the array
                  is (num_samples, num_channels).  num_channels is the
                  number of audio channels (1 for mono, 2 for stereo).
              rate : float
                  The sampling frequency (i.e. frame rate)
              sampwidth : float
                  The sample width, in bytes.  E.g. for a 24 bit WAV file,
                  sampwidth is 3.
      Notes
      -----
      This function uses the `wave` module of the Python standard libary
      to read the WAV file, so it has the same limitations as that library.
      In particular, the function does not read compressed WAV files, and
      it does not read files with floating point data.
      The array returned by `wavio.read` is always two-dimensional.  If the
      WAV data is mono, the array will have shape (num_samples, 1).
      `wavio.read()` does not scale or normalize the data.  The data in the
      array `wav.data` is the data that was in the file.  When the file
      contains 24 bit samples, the resulting numpy array is 32 bit integers,
      with values that have been sign-extended.
      """
      wav = _wave.open(file)
      rate = wav.getframerate()
      nchannels = wav.getnchannels()
      sampwidth = wav.getsampwidth()
      nframes = wav.getnframes()
      data = wav.readframes(nframes)
      wav.close()
      array = _wav2array(nchannels, sampwidth, data)
      w = Wav(data=array, rate=rate, sampwidth=sampwidth)
      return w
  
file_path: dejavu/dejavu/third_party/wavio.py
imports: import wave
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: read(file) and returns: w