code: def test_resampling_with_int64_types_no_crash(affine_eye, dtype):
      data = np.zeros((2, 2, 2))
      # Passing dtype or header is required when using int64
      # https://nipy.org/nibabel/changelog.html#api-changes-and-deprecations
      hdr = Nifti1Header()
      hdr.set_data_dtype(dtype)
      img = Nifti1Image(data.astype(dtype), affine_eye, header=hdr)
      resample_img(img, target_affine=2.0 * affine_eye)
  
imports: import copy
  import math
  import os
  from pathlib import Path
  import numpy
  import pytest
  from nibabel import Nifti1Header, Nifti1Image
  from nibabel.freesurfer import MGHImage
  from numpy.testing import assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_array_equal, assert_equal
  from nilearn import _utils
  from nilearn._utils import testing
  from nilearn.conftest import _affine_eye, _rng
  from nilearn.image import get_data
  from nilearn.image.image import _pad_array, crop_img
  from nilearn.image.resampling import BoundingBoxError, coord_transform, from_matrix_vector, get_bounds, reorder_img, resample_img, resample_to_img
label_desc: Use image node_id 36 for calling a global function with example usage: test_resampling_with_int64_types_no_crash(affine_eye, dtype) without return types