code: def testInvalidInput(self):
      # frequencies should be in ascendent order
      freqs = [440.0, 100.0, 660.0]
      pitch = freqs[0]
      mags = ones(len(freqs))
      self.assertComputeFails(HarmonicPeaks(), freqs, mags, pitch)
      # frequencies cannot be duplicated
      freqs = [440.0, 440.0, 660.0]
      self.assertComputeFails(HarmonicPeaks(), freqs, mags, pitch)
      # freqs and mags must have same size
      freqs = [100.0, 440.0, 660.0]
      mags = ones(len(freqs) - 1)
      self.assertComputeFails(HarmonicPeaks(), freqs, mags, pitch)
  
file_path: essentia/test/src/unittests/tonal/test_harmonicpeaks.py
imports: from essentia_test import *
label_desc: Use image node_id 1 for calling the TestHarmonicPeaks obj's underlying member method code with example usage: obj.testInvalidInput() without return types