code: def test_plot_img_with_resampling(binary_img, img_3d_mni):
      """Tests for plot_img with resampling of the data image."""
      img = _testdata_3d_for_plotting_for_resampling(
          img_3d_mni, binary_img
      )
      if binary_img:
          assert is_binary_niimg(img)
      else:
          assert not is_binary_niimg(img)
      display = plot_img(img)
      display.add_overlay(img)
      display.add_contours(
          img, contours=2, linewidth=4, colors=["limegreen", "yellow"]
      )
      display.add_edges(img, color="c")
      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 6 for calling a global function with example usage: test_plot_img_with_resampling(binary_img, img_3d_mni) without return types