code: def test_display_basics(display, name, img, cut_coords):
      """Basic smoke tests for all displays (slicers + projectors).
      Each object is instantiated, ``add_overlay``, ``title``,
      and ``close`` are then called.
      """
      display = display(cut_coords=cut_coords)
      display.add_overlay(img, cmap=plt.cm.gray)
      display.title(f"display mode is {name}")
      if name != "mosaic":
          assert display.cut_coords == cut_coords
      assert isinstance(display.frame_axes, matplotlib.axes.Axes)
      display.close()
  
imports: import matplotlib
  import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn.datasets import load_mni152_template
  from nilearn.plotting.displays import BaseAxes, LProjector, LRProjector, LYRProjector, LYRZProjector, LZRProjector, LZRYProjector, MosaicSlicer, OrthoProjector, OrthoSlicer, RProjector, TiledSlicer, XProjector, XSlicer, XZProjector, XZSlicer, YProjector, YSlicer, YXProjector, YXSlicer, YZProjector, YZSlicer, ZProjector, ZSlicer
label_desc: Use image node_id 7 for calling a global function with example usage: test_display_basics(display, name, img, cut_coords) without return types