docstr: Test threshold condition for peaks.
docstr_tok: ["Test","threshold","condition","for","peaks","."]
code: def test_threshold_condition(self, threshold, xp, scp):
      """
      Test threshold condition for peaks.
      """
      x = xp.asarray([0, 2, 1, 4, -1])
      peaks, props = scp.signal.find_peaks(x, threshold=threshold)
      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 4 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_threshold_condition(threshold, xp, scp) and returns: unknown