code: def test_plot_with_axes_or_figure(img_3d_mni):
      """Smoke tests for plot_img with providing figure or Axes."""
      figure = plt.figure()
      plot_img(img_3d_mni, figure=figure)
      ax = plt.subplot(111)
      plot_img(img_3d_mni, axes=ax)
      plt.close()
  
file_path: nilearn/nilearn/plotting/tests/test_img_plotting/test_plot_img.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn._utils.niimg import is_binary_niimg
  from nilearn.image import get_data
  from nilearn.plotting import plot_img
label_desc: Use image node_id 3 for calling a global function with example usage: test_plot_with_axes_or_figure(img_3d_mni) without return types