code: def testRegression(self):
      # Just makes sure algorithm does not crash on a real data source. This
      # test is not really looking for correctness. Maybe consider revising
      # it.
      inputSize = 512
      sampleRate = 44100
  
      audio = MonoLoader(
          filename=join(
              testdata.audio_dir, join("recorded", "musicbox.wav")
          ),
          sampleRate=sampleRate,
      )()
  
      fc = FrameCutter(frameSize=inputSize, hopSize=inputSize)
  
      windowingAlg = Windowing(type="blackmanharris62")
      specAlg = Spectrum(size=inputSize)
      sPeaksAlg = SpectralPeaks(
          sampleRate=sampleRate,
          maxFrequency=sampleRate / 2,
          minFrequency=0,
          orderBy="magnitude",
      )
  
      hpcpAlg = HPCP(
          minFrequency=50,
          maxFrequency=500,
          bandPreset=False,
          harmonics=3,
      )
      frame = fc(audio)
      while len(frame) != 0:
          spectrum = specAlg(windowingAlg(frame))
          (freqs, mags) = sPeaksAlg(spectrum)
          hpcp = hpcpAlg(freqs, mags)
          self.assertTrue(not any(numpy.isnan(hpcp)))
          self.assertTrue(not any(numpy.isinf(hpcp)))
          frame = fc(audio)
  
file_path: essentia/test/src/unittests/spectral/test_hpcp.py
imports: from essentia_test import *
label_desc: Use image node_id 17 for calling the TestHPCP obj's underlying member method code with example usage: obj.testRegression() without return types