code: def testSinusoid(self):
      # make sure each frame's spectral complexity is zero since we only
      # have one frequency
      filename = join(
          testdata.audio_dir, "generated/synthesised/sin5000.wav"
      )
      audio = MonoLoader(
          filename=filename, downmix="left", sampleRate=44100
      )()
  
      fc = FrameCutter(frameSize=2048, hopSize=2048)
  
      windowing = Windowing(type="blackmanharris62")
  
      sc = SpectralComplexity(sampleRate=44100, magnitudeThreshold=0.2)
  
      while True:
          frame = fc(audio)
  
          if len(frame) == 0:
              break
  
          spectrum = Spectrum()(windowing(frame))
  
          self.assertEqual(sc(spectrum), 1)
  
imports: from essentia_test import *
label_desc: Use image node_id 1 for calling the TestSpectralComplexity obj's underlying member method code with example usage: obj.testSinusoid() without return types