code: def test_int64_niftis(affine_eye, tmp_path):
      data = np.ones((3, 3, 3), dtype=bool)
      for dtype in "uint8", "int32", "float32":
          img = nibabel.Nifti1Image(data.astype(dtype), affine_eye)
          img.to_filename(tmp_path.joinpath("img.nii.gz"))
      for dtype in "int64", "uint64":
          with pytest.raises(AssertionError):
              nibabel.Nifti1Image(data.astype(dtype), affine_eye)
  
file_path: nilearn/nilearn/_utils/tests/test_testing.py
imports: import warnings
  import nibabel
  import numpy
  import pytest
  from nilearn._utils.testing import assert_memory_less_than, check_deprecation, with_memory_profiler, write_imgs_to_path
label_desc: Use image node_id 3 for calling a global function with example usage: test_int64_niftis(affine_eye, tmp_path) without return types