code: def test_plotting_functions_with_dim_invalid_input(img_3d_mni):
      """Test whether error raises with bad error to input."""
      with pytest.raises(ValueError):
          plot_stat_map(img_3d_mni, dim="-10")
  
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn.conftest import _rng
  from nilearn.datasets import load_mni152_template
  from nilearn.image import get_data
  from nilearn.image.resampling import coord_transform
  from nilearn.plotting import plot_stat_map
  from nilearn.plotting.find_cuts import find_cut_slices
label_desc: Use image node_id 10 for calling a global function with example usage: test_plotting_functions_with_dim_invalid_input(img_3d_mni) without return types