code: def testStairCase(self):
      # should find the first postition of the last step
      inputSize = 1024
      pos = [range(3, 7), range(7, 14), range(14, 20)]
      val = [1.0, 2.0, 3.0]
      input = [0] * inputSize
      for i in range(len(pos)):
          for j in range(len(pos[i])):
              input[pos[i][j]] = val[i]
  
      # no interpolation:
      config = {
          "range": inputSize - 1,
          "maxPosition": inputSize,
          "minPosition": 0,
          "orderBy": "amplitude",
          "interpolate": False,
      }
      pdetect = PeakDetection(**config)
      (posis, vals) = pdetect(input)
      self.assertEqualVector(posis, [pos[-1][0]])
      self.assertEqualVector(vals, [val[-1]])
  
imports: from essentia_test import *
label_desc: Use image node_id 14 for calling the TestPeakDetection obj's underlying member method code with example usage: obj.testStairCase() without return types