docstr: Test distance condition for peaks.
docstr_tok: ["Test","distance","condition","for","peaks","."]
code: def test_distance_condition(self, distance, xp, scp):
      """
      Test distance condition for peaks.
      """
      # Peaks of different height with constant distance 3
      peaks_all = xp.arange(1, 21, 3)
      x = xp.zeros(21)
      x[peaks_all] += xp.linspace(1, 2, peaks_all.size)
      peaks, props = scp.signal.find_peaks(x, distance=distance)
      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 5 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_distance_condition(distance, xp, scp) and returns: unknown