code: def testRegression(self):
      # Testing that results are not inf nor nan, but real numbers
      audio = MonoLoader(
          filename=join(
              testdata.audio_dir,
              "generated/synthesised/sin440_sweep_0db.wav",
          ),
          sampleRate=44100,
      )()
  
      fft = Spectrum()
      window = Windowing(type="hamming")
      nbands = [0, 100, 200, 300, 400, 500, 600, 700, 800]
      fbands = FrequencyBands(frequencyBands=nbands, sampleRate=44100)
      tempobands = TempoScaleBands()
      bandsgain = [2.0, 3.0, 2.0, 1.0, 1.2, 2.0, 3.0, 2.5]
  
      for frame in FrameGenerator(audio, frameSize=2048, hopSize=512):
          scaledbands, cumul = tempobands(fbands(fft(window(frame))))
  
          self.assert_(not any(numpy.isnan(scaledbands)))
          self.assert_(not any(numpy.isinf(scaledbands)))
          self.assert_(all(scaledbands >= 0.0))
  
          self.assert_(not numpy.isnan(cumul))
          self.assert_(not numpy.isinf(cumul))
          self.assert_(cumul >= 0.0)
  
file_path: essentia/test/src/unittests/rhythm/test_temposcalebands.py
imports: from essentia_test import *
label_desc: Use image node_id 1 for calling the TestTempoScaleBands obj's underlying member method code with example usage: obj.testRegression() without return types