code: def testPeakBeforeEnd(self):
      peakPos = 3
      input = [0, 0, 0, 0, 0]
      input[peakPos] = 1
      inputSize = len(input)
      config = {
          "range": inputSize - 1,
          "maxPosition": inputSize - 1,
          "orderBy": "amplitude",
      }
      pdetect = PeakDetection(**config)
      (posis, vals) = pdetect(input)
      self.assertEqualVector(posis, [peakPos])
      self.assertEqualVector(vals, [1])
  
imports: from essentia_test import *
label_desc: Use image node_id 8 for calling the TestPeakDetection obj's underlying member method code with example usage: obj.testPeakBeforeEnd() without return types