docstr: Test plateau size condition for peaks.
docstr_tok: ["Test","plateau","size","condition","for","peaks","."]
code: def test_plateau_size(self, plateau_size, xp, scp):
      """
      Test plateau size condition for peaks.
      """
      # Prepare signal with peaks with peak_height == plateau_size
      plateau_sizes = xp.array([1, 2, 3, 4, 8, 20, 111])
      x = xp.zeros(plateau_sizes.size * 2 + 1)
      x[1::2] = plateau_sizes
      repeats = xp.ones(x.size, dtype=int)
      repeats[1::2] = x[1::2]
      x = xp.repeat(x, repeats.tolist())
  
      # Test full output
      peaks, props = scp.signal.find_peaks(x, plateau_size=plateau_size)
      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 2 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_plateau_size(plateau_size, xp, scp) and returns: unknown