code: def test_plot_img_with_auto_cut_coords(affine_eye, display_mode):
      """Smoke test for plot_img with cut_coords set in auto mode."""
      data = np.zeros((20, 20, 20))
      data[3:-3, 3:-3, 3:-3] = 1
      img = Nifti1Image(data, affine_eye)
      plot_img(
          img, cut_coords=None, display_mode=display_mode, black_bg=True
      )
      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 5 for calling a global function with example usage: test_plot_img_with_auto_cut_coords(affine_eye, display_mode) without return types