code: def testSinglePeakLowCompression(self):
      # Provide a single input peak with a 0.5 magnitude at the reference frequency
      freq_speaks = [55]
      mag_speaks = [0.5]
      outputLength = 600
  
      # Low Compression expected values (0.0001)
      expectedLowCompPitchSalience = [
          9.9993068e-01,
          9.7546059e-01,
          9.0444577e-01,
          7.9383761e-01,
          6.5446311e-01,
          4.9996534e-01,
          3.4546751e-01,
          2.0609310e-01,
          9.5484875e-02,
          2.4470057e-02,
          3.7491393e-33,
      ]
  
      # Default magnitudeCompression expected values
      expectedNormalPitchSalience = [
          5.0000000e-01,
          4.8776412e-01,
          4.5225424e-01,
          3.9694631e-01,
          3.2725424e-01,
          2.5000000e-01,
          1.7274573e-01,
          1.0305370e-01,
          4.7745746e-02,
          1.2235877e-02,
          1.8746997e-33,
      ]
  
      # Append zeros to expected saliences
      expectedLowCompPitchSalience += [0] * (outputLength - 11)
      expectedNormalPitchSalience += [0] * (outputLength - 11)
  
      calculatedLowCompPitchSalience = PitchSalienceFunction(
          magnitudeCompression=0.0001
      )(freq_speaks, mag_speaks)
      self.assertEqual(
          len(calculatedLowCompPitchSalience), outputLength
      )
      self.assertAlmostEqualVectorFixedPrecision(
          calculatedLowCompPitchSalience,
          expectedLowCompPitchSalience,
          8,
      )
  
      calculatedNormalPitchSalience = PitchSalienceFunction()(
          freq_speaks, mag_speaks
      )
      self.assertEqual(len(calculatedNormalPitchSalience), outputLength)
      self.assertAlmostEqualVectorFixedPrecision(
          calculatedNormalPitchSalience, expectedNormalPitchSalience, 8
      )
  
imports: from essentia_test import *
  from numpy import *
label_desc: Use image node_id 5 for calling the TestPitchSalienceFunction obj's underlying member method code with example usage: obj.testSinglePeakLowCompression() without return types