docstr: Test if height of prominences is correctly calculated in signal with
  rising baseline (peak widths are 1 sample).
docstr_tok: ["Test","if","height","of","prominences","is","correctly","calculated","in","signal","with","rising","baseline","(","peak","widths","are","1","sample",")","."]
code: def test_basic(self, xp, scp):
      """
      Test if height of prominences is correctly calculated in signal with
      rising baseline (peak widths are 1 sample).
      """
      # Prepare basic signal
      x = xp.array([-1, 1.2, 1.2, 1, 3.2, 1.3, 2.88, 2.1])
      peaks = xp.array([1, 2, 4, 6])
      # Test if calculation matches handcrafted result
      out = scp.signal.peak_prominences(x, peaks)
      return out
  
imports: import pytest
  import cupy
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupy import testing
  import cupyx.scipy.signal
  import numpy
label_desc: Use image node_id 2 for calling the TestPeakProminences obj's underlying member method code with example usage: obj.test_basic(xp, scp) and returns: out