code: def testRegression(self):
      inputSize = 1024
  
      config = {
          "range": inputSize - 1,
          "maxPosition": inputSize,
          "minPosition": 0,
          "orderBy": "amplitude",
      }
      pdetect = PeakDetection(**config)
  
      pos1 = 3
      val1 = 1.0
      inputOne = [0] * inputSize
      inputOne[pos1] = val1
      (posis, vals) = pdetect(inputOne)
      self.assertEqualVector(posis, [pos1])
      self.assertEqualVector(vals, [val1])
  
      pos1 = 3
      val1 = 1.0
      pos2 = 512
      val2 = 3.0
      inputTwo = [0] * inputSize
      inputTwo[pos1] = val1
      inputTwo[pos2] = val2
      (posis, vals) = pdetect(inputTwo)
      self.assertEqualVector(posis, [pos2, pos1])
      self.assertEqualVector(vals, [val2, val1])
  
      config["orderBy"] = "position"
      pdetect.configure(**config)
      (posis, vals) = pdetect(inputTwo)
      self.assertEqualVector(posis, [pos1, pos2])
      self.assertEqualVector(vals, [val1, val2])
  
imports: from essentia_test import *
label_desc: Use image node_id 12 for calling the TestPeakDetection obj's underlying member method code with example usage: obj.testRegression() without return types