code: def test_find_cuts_empty_mask_no_crash(affine_eye):
      img = nibabel.Nifti1Image(np.ones((2, 2, 2)), affine_eye)
      mask_img = compute_epi_mask(img)
      with pytest.warns(UserWarning):
          cut_coords = find_xyz_cut_coords(img, mask_img=mask_img)
      np.testing.assert_array_equal(cut_coords, [0.5, 0.5, 0.5])
  
file_path: nilearn/nilearn/plotting/tests/test_find_cuts.py
imports: import nibabel
  import numpy
  import pytest
  from nilearn.masking import compute_epi_mask
  from nilearn.plotting.find_cuts import _transform_cut_coords, find_cut_slices, find_parcellation_cut_coords, find_probabilistic_atlas_cut_coords, find_xyz_cut_coords
label_desc: Use image node_id 7 for calling a global function with example usage: test_find_cuts_empty_mask_no_crash(affine_eye) without return types