docstr: Test exceptions raised by function.
docstr_tok: ["Test","exceptions","raised","by","function","."]
code: def test_raises(self):
      """
      Test exceptions raised by function.
      """
      for xp, scp in [(cupy, cupyx.scipy), (np, scipy)]:
          with pytest.raises(ValueError, match="1-D array"):
              scp.signal.find_peaks(xp.array(1))
          with pytest.raises(ValueError, match="1-D array"):
              scp.signal.find_peaks(xp.ones((2, 2)))
          with pytest.raises(ValueError, match="distance"):
              scp.signal.find_peaks(xp.arange(10), distance=-1)
  
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 10 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_raises() without return types