code: def test_plot_with_nans(plot_func, img_3d_mni):
      """Smoke test for plotting functions with nans in data image."""
      plot_func(_add_nans_to_img(img_3d_mni))
  
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 11 for calling a global function with example usage: test_plot_with_nans(plot_func, img_3d_mni) without return types