code: def testSinusoid(self):
      audio = MonoLoader(
          filename=join(
              testdata.audio_dir, "generated/synthesised/sin5000.wav"
          ),
          sampleRate=44100,
      )()
  
      fc = FrameCutter(frameSize=2048, hopSize=2048)
  
      windowing = Windowing(type="blackmanharris62")
      spec = Spectrum()
  
      speaks = SpectralPeaks(
          sampleRate=44100,
          maxPeaks=1,
          maxFrequency=10000,
          minFrequency=0,
          magnitudeThreshold=0,
          orderBy="magnitude",
      )
  
      while True:
          frame = fc(audio)
  
          if len(frame) == 0:
              break
  
          (freqs, mags) = speaks(spec(windowing(frame)))
  
          self.assertAlmostEqual(freqs[0], 5000, 1e-3)
  
file_path: essentia/test/src/unittests/spectral/test_spectralpeaks.py
imports: from essentia_test import *
label_desc: Use image node_id 2 for calling the TestSpectralPeaks obj's underlying member method code with example usage: obj.testSinusoid() without return types