code: def testDifferentPeaks(self):
      freq_speaks = [55, 85]
      mag_speaks = [1, 1]
      calculatedPitchSalience1 = PitchSalienceFunction()(
          freq_speaks, mag_speaks
      )
      # Save operation is commented out. Uncomment to tweak parameters orinput to genrate new referencesw when required.
      # save('calculatedPitchSalience_testDifferentPeaks1.npy', calculatedPitchSalience1)
  
      mag_speaks = [0.5, 2]
      calculatedPitchSalience2 = PitchSalienceFunction()(
          freq_speaks, mag_speaks
      )
      # Save operation is commented out. Uncomment to tweak parameters orinput to genrate new referencesw when required.
      # save('calculatedPitchSalience_testDifferentPeaks2.npy', calculatedPitchSalience2)
      self.assertAlmostEqual(calculatedPitchSalience1[0], 0.5, 3)
      self.assertAlmostEqual(calculatedPitchSalience2[0], 1.5, 3)
  
      expectedPitchSalience = load(
          join(
              filedir(),
              "pitchsalience/calculatedPitchSalience_testDifferentPeaks1.npy",
          )
      )
      expectedPitchSalienceList = expectedPitchSalience.tolist()
      self.assertAlmostEqualVectorFixedPrecision(
          expectedPitchSalienceList, calculatedPitchSalience1, 8
      )
  
      expectedPitchSalience = load(
          join(
              filedir(),
              "pitchsalience/calculatedPitchSalience_testDifferentPeaks2.npy",
          )
      )
      expectedPitchSalienceList = expectedPitchSalience.tolist()
      self.assertAlmostEqualVectorFixedPrecision(
          expectedPitchSalienceList, calculatedPitchSalience2, 8
      )
  
imports: from essentia_test import *
  from numpy import *
label_desc: Use image node_id 12 for calling the TestPitchSalienceFunction obj's underlying member method code with example usage: obj.testDifferentPeaks() without return types