code: def testHarmonicSound(self):
      spectrum = [
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
          1,
          0,
      ]
      sampleRate = len(spectrum) * 2
  
      self.assertAlmostEqual(
          PitchSalience(
              sampleRate=sampleRate,
              lowBoundary=0.1 * sampleRate / 2,
              highBoundary=0.9 * sampleRate / 2,
          )(spectrum),
          0.8888888,
          1e-6,
      )
  
file_path: essentia/test/src/unittests/sfx/test_pitchsalience.py
imports: from essentia_test import *
  from numpy import sin, pi, mean, var
  from numpy.random import uniform
label_desc: Use image node_id 4 for calling the TestPitchSalience obj's underlying member method code with example usage: obj.testHarmonicSound() without return types