code: def test_errors(self):
      # resampling of wav not supported
      with self.assertRaises(ValueError):
          load_wave_file(sample_file, sample_rate=22050)
      # resampling of wav not supported
      with self.assertRaises(ValueError):
          load_wave_file(sample_file, dtype=float)
      # file not found
      with self.assertRaises(IOError):
          load_wave_file(pj(AUDIO_PATH, "foo_bar.wav"))
      # not an audio file
      with self.assertRaises(ValueError):
          load_wave_file(pj(DATA_PATH, "README"))
      # closed file handle
      with self.assertRaises(ValueError):
          file_handle = open(sample_file, "rb")
          file_handle.close()
          load_wave_file(file_handle)
  
imports: from __future__ import absolute_import, division, print_function
  import io
  import unittest
  from os.path import join
  from madmom.io.audio import *
  from .None import AUDIO_PATH, DATA_PATH
label_desc: Use image node_id 8 for calling the TestLoadWaveFileFunction obj's underlying member method code with example usage: obj.test_errors() without return types