code: def testZero(self):
      # Inputting zeros should return no onsets (empty array)
      audio = MonoLoader(
          filename=join(testdata.audio_dir, "recorded/techno_loop.wav"),
          sampleRate=44100,
      )()
      frames = FrameGenerator(
          audio, frameSize=framesize, hopSize=hopsize
      )
      win = Windowing(type="hamming")
      fft = FFT()
      onset_hfc = OnsetDetection(method="hfc")
      onset_complex = OnsetDetection(method="complex")
      onset_complex_phase = OnsetDetection(method="complex_phase")
      onset_melflux = OnsetDetection(method="melflux")
      onset_flux = OnsetDetection(method="flux")
      onset_rms = OnsetDetection(method="rms")
      for frame in frames:
          fft_frame = fft(win(frame))
          mag, ph = CartesianToPolar()(fft_frame)
          mag = zeros(len(mag))
          self.assertEqual(onset_hfc(mag, ph), 0)
          self.assertEqual(onset_complex(mag, ph), 0)
          self.assertEqual(onset_complex_phase(mag, ph), 0)
          self.assertEqual(onset_melflux(mag, ph), 0)
          self.assertEqual(onset_flux(mag, ph), 0)
          self.assertEqual(onset_rms(mag, ph), 0)
  
file_path: essentia/test/src/unittests/rhythm/test_onsetdetection.py
imports: from numpy import *
  from essentia_test import *
label_desc: Use image node_id 1 for calling the TestOnsetDetection obj's underlying member method code with example usage: obj.testZero() without return types