code: def test_cweighting_error(self):
      f = digital_filter(2)
      self.assertRaises(ValueError, f.set_c_weighting, 44100)
      f = digital_filter(8)
      self.assertRaises(ValueError, f.set_c_weighting, 44100)
      f = digital_filter(5)
      self.assertRaises(ValueError, f.set_c_weighting, 4000)
      f = digital_filter(5)
      self.assertRaises(ValueError, f.set_c_weighting, 193000)
      f = digital_filter(7)
      self.assertRaises(ValueError, f.set_a_weighting, 193000)
      f = digital_filter(5)
      self.assertRaises(ValueError, f.set_a_weighting, 192000)
  
file_path: aubio/python/tests/test_filter.py
imports: from numpy.testing import TestCase, assert_equal, assert_almost_equal
  from aubio import fvec, digital_filter
  from utils import array_from_text_file
label_desc: Use image node_id 2 for calling the aubio_filter_test_case obj's underlying member method code with example usage: obj.test_cweighting_error() without return types