code: def test_two_image_peaks(minsize, dtype):
      """Test reconstruction with two peak pixels isolated by the mask"""
      image = np.array(
          [
              [1, 1, 1, 1, 1, 1, 1, 1, 1],
              [1, 2, 1, 1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 1, 3, 1, 1],
              [1, 1, 1, 1, 1, 1, 1, 1, 1],
          ],
          dtype=dtype,
      )
  
      mask = np.array(
          [
              [4, 4, 4, 1, 1, 1, 1, 1, 1],
              [4, 4, 4, 1, 1, 1, 1, 1, 1],
              [4, 4, 4, 1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 4, 4, 4, 1],
              [1, 1, 1, 1, 1, 4, 4, 4, 1],
              [1, 1, 1, 1, 1, 4, 4, 4, 1],
          ],
          dtype=dtype,
      )
  
      expected = np.array(
          [
              [2, 2, 2, 1, 1, 1, 1, 1, 1],
              [2, 2, 2, 1, 1, 1, 1, 1, 1],
              [2, 2, 2, 1, 1, 1, 1, 1, 1],
              [1, 1, 1, 1, 1, 3, 3, 3, 1],
              [1, 1, 1, 1, 1, 3, 3, 3, 1],
              [1, 1, 1, 1, 1, 3, 3, 3, 1],
          ],
          dtype=dtype,
      )
      if minsize is not None:
          # increase data size by tiling (done to test various int types)
          nrow = math.ceil(math.sqrt(minsize / image.size))
          ncol = math.ceil(minsize / (image.size * nrow))
          image = np.tile(image, (nrow, ncol))
          mask = np.tile(mask, (nrow, ncol))
          expected = np.tile(expected, (nrow, ncol))
      out = reconstruction(image, mask)
      assert out.dtype == _supported_float_type(mask.dtype)
      assert_array_almost_equal(out, expected)
  
file_path: scikit-image/skimage/morphology/tests/test_reconstruction.py
imports: import math
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from skimage._shared.utils import _supported_float_type
  from skimage.morphology.grayreconstruct import reconstruction
label_desc: Use image node_id 5 for calling a global function with example usage: test_two_image_peaks(minsize, dtype) without return types