docstr: Verify that window_size is passed correctly to private function and
  affects the result.
code: def test_find_peaks_window_size(self):
      """
      Verify that window_size is passed correctly to private function and
      affects the result.
      """
      sigmas = [2.0, 2.0]
      num_points = 1000
      test_data, act_locs = _gen_gaussians_even(sigmas, num_points)
      widths = np.arange(0.1, max(sigmas), 0.2)
      noise_amp = 0.05
      np.random.seed(18181911)
      test_data += (np.random.rand(num_points) - 0.5) * (2 * noise_amp)
  
      # Possibly contrived negative region to throw off peak finding
      # when window_size is too large
      test_data[250:320] -= 1
  
      found_locs = find_peaks_cwt(
          test_data,
          widths,
          gap_thresh=2,
          min_snr=3,
          min_length=None,
          window_size=None,
      )
      with pytest.raises(AssertionError):
          assert found_locs.size == act_locs.size
  
      found_locs = find_peaks_cwt(
          test_data,
          widths,
          gap_thresh=2,
          min_snr=3,
          min_length=None,
          window_size=20,
      )
      assert found_locs.size == act_locs.size
  
imports: import copy
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_array_equal
  import pytest
  from pytest import raises, warns
  from scipy.signal._peak_finding import argrelmax, argrelmin, peak_prominences, peak_widths, _unpack_condition_args, find_peaks, find_peaks_cwt, _identify_ridge_lines
  from scipy.signal._peak_finding_utils import _local_maxima_1d, PeakPropertyWarning
label_desc: Use image node_id 4 for calling the TestFindPeaksCwt obj's underlying member method code with example usage: obj.test_find_peaks_window_size() without return types