code: def test_invalid_cut_coords_with_display_mode(
      plot_func,
      display_mode,
      cut_coords,
      img_3d_mni,
      expected_error_message,
  ):
      """Tests for invalid combinations of cut_coords and display_mode."""
      if plot_func == plot_glass_brain and display_mode != "ortho":
          return
      with pytest.raises(ValueError, match=expected_error_message):
          plot_func(
              img_3d_mni,
              display_mode=display_mode,
              cut_coords=cut_coords,
          )
  
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn.conftest import _affine_mni
  from nilearn.datasets import load_mni152_template
  from nilearn.image import get_data, reorder_img
  from nilearn.plotting import plot_anat, plot_carpet, plot_epi, plot_glass_brain, plot_img, plot_prob_atlas, plot_roi, plot_stat_map
  from nilearn.plotting.img_plotting import MNI152TEMPLATE
label_desc: Use image node_id 10 for calling a global function with example usage: test_invalid_cut_coords_with_display_mode(plot_func, display_mode, cut_coords, img_3d_mni, expected_error_message) without return types