code: def test_minsize():
      # single-channel:
      img = data.coins()[20:168, 0:128]
      for min_size in np.arange(10, 100, 10):
          segments = felzenszwalb(img, min_size=min_size, sigma=3)
          counts = np.bincount(segments.ravel())
          # actually want to test greater or equal.
          assert_greater(counts.min() + 1, min_size)
      # multi-channel:
      coffee = data.coffee()[::4, ::4]
      for min_size in np.arange(10, 100, 10):
          segments = felzenszwalb(coffee, min_size=min_size, sigma=3)
          counts = np.bincount(segments.ravel())
          # actually want to test greater or equal.
          assert_greater(counts.min() + 1, min_size)
  
file_path: scikit-image/skimage/segmentation/tests/test_felzenszwalb.py
imports: import numpy
  from skimage import data
  from skimage.segmentation import felzenszwalb
  from skimage._shared import testing
  from skimage._shared.testing import assert_greater, run_in_parallel, assert_equal, assert_array_equal, assert_warns, assert_no_warnings
label_desc: Use image node_id 2 for calling a global function with example usage: test_minsize() without return types