code: def test_plot_img_invalid():
      """Check that we get a meaningful error message when
      we give a wrong display_mode argument.
      """
      with pytest.raises(Exception):
          plot_anat(display_mode="zzz")
  
file_path: nilearn/nilearn/plotting/tests/test_img_plotting/test_plot_anat.py
imports: import matplotlib.pyplot
  import pytest
  from nilearn.plotting import plot_anat
  from nilearn.plotting.img_plotting import MNI152TEMPLATE
label_desc: Use image node_id 4 for calling a global function with example usage: test_plot_img_invalid() without return types