code: def testDuplicatePeaks(self):
      # Provide multiple duplicate peaks at the reference frequency.
      freq_speaks = [55, 55, 55]
      mag_speaks = [1, 1, 1]
      outputLength = 600
      # The same expectedPitchSalience from testSinglePeak test case
      expectedPitchSalience = [
          3.0000000e00,
          2.9265847e00,
          2.7135253e00,
          2.3816779e00,
          1.9635254e00,
          1.5000000e00,
          1.0364745e00,
          6.1832219e-01,
          2.8647447e-01,
          7.3415264e-02,
          1.1248198e-32,
      ]
  
      # Append zeros to expected salience
      expectedPitchSalience += [0] * (outputLength - 11)
      # For 3 duplicate peaks, the expectedPitchSalience needs to be scaled by a factor of 3
      arrayExpectedPitchSalience = 3 * array(expectedPitchSalience)
      calculatedPitchSalience = PitchSalienceFunction()(
          freq_speaks, mag_speaks
      )
      self.assertAlmostEqualVectorFixedPrecision(
          calculatedPitchSalience, expectedPitchSalience, 7
      )
  
imports: from essentia_test import *
  from numpy import *
label_desc: Use image node_id 8 for calling the TestPitchSalienceFunction obj's underlying member method code with example usage: obj.testDuplicatePeaks() without return types