code: def assert_close(im1, im2, tol=0.0):
      if im1.ndim == 3 and im1.shape[-1] == 1:
          im1 = im1.reshape(im1.shape[:-1])
      if im2.ndim == 3 and im2.shape[-1] == 1:
          im2 = im2.reshape(im2.shape[:-1])
      assert im1.shape == im2.shape
      diff = im1.astype("float32") - im2.astype("float32")
      diff[15:17, :] = 0  # Mask edge artifacts
      diff[:, 15:17] = 0
      assert np.abs(diff).max() <= tol
  
imports: import os
  import sys
  import io
  from zipfile import ZipFile
  import numpy
  import pytest
  import imageio
  from imageio import core
  from conftest import deprecated_test
label_desc: Use image node_id 3 for calling a global function with example usage: assert_close(im1, im2, tol) without return types