code: def test_footprint():
      # Basic tests for nonstandard footprints
      footprint = np.array(
          [[0, 1, 1], [0, 1, 1], [0, 0, 0]]
      )  # Cannot grow left or down
  
      output = flood_fill(
          np.zeros((5, 6), dtype=np.uint8),
          (3, 1),
          255,
          footprint=footprint,
      )
  
      expected = np.array(
          [
              [0, 255, 255, 255, 255, 255],
              [0, 255, 255, 255, 255, 255],
              [0, 255, 255, 255, 255, 255],
              [0, 255, 255, 255, 255, 255],
              [0, 0, 0, 0, 0, 0],
          ],
          dtype=np.uint8,
      )
  
      np.testing.assert_equal(output, expected)
  
      footprint = np.array(
          [[0, 0, 0], [1, 1, 0], [1, 1, 0]]
      )  # Cannot grow right or up
  
      output = flood_fill(
          np.zeros((5, 6), dtype=np.uint8),
          (1, 4),
          255,
          footprint=footprint,
      )
  
      expected = np.array(
          [
              [0, 0, 0, 0, 0, 0],
              [255, 255, 255, 255, 255, 0],
              [255, 255, 255, 255, 255, 0],
              [255, 255, 255, 255, 255, 0],
              [255, 255, 255, 255, 255, 0],
          ],
          dtype=np.uint8,
      )
  
      np.testing.assert_equal(output, expected)
  
file_path: scikit-image/skimage/morphology/tests/test_flood_fill.py
imports: import numpy
  import pytest
  from skimage.morphology import flood, flood_fill
label_desc: Use image node_id 11 for calling a global function with example usage: test_footprint() without return types