code: def test_1d():
      image = np.arange(11)
      expected = np.array(
          [0, 1, -20, -20, -20, -20, -20, -20, -20, 9, 10]
      )
  
      output = flood_fill(image, 5, -20, tolerance=3)
      output2 = flood_fill(image, (5,), -20, tolerance=3)
  
      np.testing.assert_equal(output, expected)
      np.testing.assert_equal(output, output2)
  
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 8 for calling a global function with example usage: test_1d() without return types