code: def test_binary_closing_extensive():
      footprint = np.array([[0, 0, 1], [0, 1, 1], [1, 1, 1]])
  
      result_default = binary.binary_closing(
          bw_img, footprint=footprint
      )
      assert np.all(result_default >= bw_img)
  
      # mode="min" is expected to be not extensive
      result_min = binary.binary_closing(
          img, footprint=footprint, mode="min"
      )
      assert not np.all(result_min >= bw_img)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal, assert_equal
  from scipy import ndimage
  from skimage import data, color, morphology
  from skimage.util import img_as_bool
  from skimage.morphology import binary, footprints, gray
label_desc: Use image node_id 5 for calling a global function with example usage: test_binary_closing_extensive() without return types