docstr: Test width condition for peaks.
docstr_tok: ["Test","width","condition","for","peaks","."]
code: def test_width_condition(self, xp, scp):
      """
      Test width condition for peaks.
      """
      x = xp.array([1, 0, 1, 2, 1, 0, -1, 4, 0])
      peaks, props = scp.signal.find_peaks(
          x, width=(None, 2), rel_height=0.75
      )
      return (peaks,) + tuple(
          [props[k] for k in self.property_keys if k in props]
      )
  
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 8 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_width_condition(xp, scp) and returns: unknown