code: def testRegression3Peaks(self):
      # Provide 3 input peaks with a unit magnitude and
      # validate that the output salience with previously calculated values
      freq_speaks = [55, 100, 340]
      mag_speaks = [1, 1, 1]
      calculatedPitchSalience = PitchSalienceFunction()(
          freq_speaks, mag_speaks
      )
      bins, values = PitchSalienceFunctionPeaks()(
          calculatedPitchSalience
      )
      self.assertEqualVector(
          bins, [1.0, 103.0, 315.0, 195.0, 125.0, 75.0, 37.0]
      )
      self.assertAlmostEqualVectorFixedPrecision(
          values,
          [1.1899976, 1.0, 1.0, 0.8, 0.64000005, 0.512, 0.40960002],
          6,
      )
  
file_path: essentia/test/src/unittests/tonal/test_pitchsaliencefunctionpeaks.py
imports: from essentia_test import *
  from numpy import *
label_desc: Use image node_id 5 for calling the TestPitchSalienceFunctionPeaks obj's underlying member method code with example usage: obj.testRegression3Peaks() without return types