code: def testRegression(self):
      # read expected output
      expected = readMatrix(join(filedir(), "barkbands", "output.txt"))
  
      # Simple regression test, comparing to reference values
      audio = MonoLoader(
          filename=join(
              testdata.audio_dir,
              "generated/synthesised/sin440_sweep_0db.wav",
          ),
          sampleRate=44100,
      )()
  
      fft = Spectrum()
      window = Windowing(size=2048, type="hamming", zeroPadding=0)
      bbands = BarkBands(sampleRate=44100)
  
      frameIdx = 0
      for frame in FrameGenerator(audio, frameSize=2048, hopSize=512):
          bands = bbands(fft(window(frame)))
  
          self.assert_(not any(numpy.isnan(bands)))
          self.assert_(not any(numpy.isinf(bands)))
          self.assert_(all(bands >= 0.0))
  
          # this test is commented because although essentia yields exactly
          # the same results as in output.txt when run as cpp, python does
          # not due to rounding errors, presumably
          # self.assertAlmostEqualVector(bands, expected[frameIdx], 1e-1)
          frameIdx += 1
  
imports: from essentia_test import *
label_desc: Use image node_id 1 for calling the TestBarkBands obj's underlying member method code with example usage: obj.testRegression() without return types