code: def testCompare(self):
      # This test started to fail after the improvements
      # described in 16258bf97eedb35299450874675bf2bde6eb5aa8.
      #
      # As that change clearly improves the way to compute the
      # octave bands the it will be considered as correct.
      # This test was modified after commit
      # 3e3538080a1d4336c293f822d44cc7619b40660f
  
      # No contrast in any band
      spec0 = [1] * 1025
  
      # Contrast in the fist band only
      spec1 = [1] * 10 + [0] * 1015
  
      # Contrast in the fist and second bands
      spec2 = [1] * 10 + [0] * 1015
      spec2[20] = 1
  
      sr = 44100
      SC = SpectralContrast(sampleRate=sr)
  
      sc0 = SC(spec0)
      sc1 = SC(spec1)
      sc2 = SC(spec2)
      self.assertTrue(numpy.mean(sc1[0]) < numpy.mean(sc2[0]))
      self.assertTrue(numpy.mean(sc0[0]) < numpy.mean(sc2[0]))
      self.assertTrue(numpy.mean(sc0[0]) < numpy.mean(sc1[0]))
  
file_path: essentia/test/src/unittests/spectral/test_spectralcontrast.py
imports: from essentia_test import *
label_desc: Use image node_id 5 for calling the TestSpectralContrast obj's underlying member method code with example usage: obj.testCompare() without return types