code: def test_plot_stat_map_with_masked_image(img_3d_mni, affine_mni):
      """Smoke test coordinate finder with mask."""
      masked_img = Nifti1Image(
          np.ma.masked_equal(get_data(img_3d_mni), 0),
          affine_mni,
      )
      plot_stat_map(masked_img, display_mode="x")
      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 4 for calling a global function with example usage: test_plot_stat_map_with_masked_image(img_3d_mni, affine_mni) without return types