code: def wavfile_to_examples(wav_file):
      """Convenience wrapper around waveform_to_examples() for a common WAV format.
  
      Args:
        wav_file: String path to a file, or a file-like object. The file
        is assumed to contain WAV audio data with signed 16-bit PCM samples.
  
      Returns:
        See waveform_to_examples.
      """
      from scipy.io import wavfile
  
      sr, wav_data = wavfile.read(wav_file)
      assert wav_data.dtype == np.int16, (
          "Bad sample type: %r" % wav_data.dtype
      )
      samples = wav_data / 32768.0  # Convert to [-1.0, +1.0]
      return waveform_to_examples(samples, sr)
  
imports: from .None import mel_features
  from .None import vggish_params
  from turicreate._deps.minimal_package import _minimal_package_import_check
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: wavfile_to_examples(wav_file) and returns: waveform_to_examples