code: def test_resample_img2img():
      fimg = load_image(funcfile)
      aimg = load_image(anatfile)
      resimg = resample_img2img(fimg, fimg)
      assert np.allclose(resimg.get_fdata(), fimg.get_fdata())
      pytest.raises(ValueError, resample_img2img, fimg, aimg)
  
imports: from itertools import product
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from nipy.algorithms.resample import resample, resample_img2img
  from nipy.core.api import AffineTransform, ArrayCoordMap, Image, vox2mni
  from nipy.core.reference import slices
  from nipy.io.api import load_image
  from nipy.testing import anatfile, funcfile
label_desc: Use image node_id 1 for calling a global function with example usage: test_resample_img2img() without return types