code: def test_resample_dtypes():
      for arr in (
          np.random.rand(10, 11, 12),
          np.random.randint(100, size=(10, 11, 12)) - 50,
      ):
          _test_resample(arr, Affine(), (0, 1, 3, 5))
          _test_resample(arr, Transform(lambda x: x), (0, 1, 3, 5))
  
imports: import numpy
  from nibabel.affines import apply_affine
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ....core.api import Image, vox2mni
  from ....core.image.image_spaces import as_xyz_image, xyz_affine
  from ..affine import Affine
  from ..resample import cast_array, resample
  from ..transform import Transform
label_desc: Use image node_id 9 for calling a global function with example usage: test_resample_dtypes() without return types