code: def test_plot_stat_map_bad_input(img_3d_mni, tmp_path):
      """Test for bad input arguments (cf. #510)."""
      filename = tmp_path / "temp.png"
      ax = plt.subplot(111, rasterized=True)
      plot_stat_map(
          img_3d_mni,
          symmetric_cbar=True,
          output_file=filename,
          axes=ax,
          vmax=np.nan,
      )
      plt.close()
  
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 1 for calling a global function with example usage: test_plot_stat_map_bad_input(img_3d_mni, tmp_path) without return types