code: def test_compare_images_blend():
      img1 = np.zeros((10, 10), dtype=np.uint8)
      img1[3:8, 3:8] = 255
      img2 = np.zeros_like(img1)
      img2[3:8, 0:8] = 255
      expected_result = np.zeros_like(img1, dtype=np.float64)
      expected_result[3:8, 3:8] = 1
      expected_result[3:8, 0:3] = 0.5
      result = compare_images(img1, img2, method="blend")
      assert_array_equal(result, expected_result)
  
file_path: scikit-image/skimage/util/tests/test_compare.py
imports: import numpy
  from skimage._shared.testing import assert_array_equal
  from skimage._shared import testing
  from skimage.util.compare import compare_images
label_desc: Use image node_id 3 for calling a global function with example usage: test_compare_images_blend() without return types