code: def test_window_type(wintype):
      w = window(wintype, (9, 9))
      assert w.ndim == 2
      assert w.shape[1:] == w.shape[:-1]
      assert np.allclose(w.sum(axis=0), w.sum(axis=1))
  
file_path: scikit-image/skimage/filters/tests/test_window.py
imports: import numpy
  import pytest
  from scipy.signal import get_window
  from skimage.filters import window
label_desc: Use image node_id 4 for calling a global function with example usage: test_window_type(wintype) without return types