code: def test_user_given_cmap_with_colorbar(img):
      """Test cmap provided as a string with ``OrthoSlicer``."""
      oslicer = OrthoSlicer(cut_coords=(0, 0, 0))
      oslicer.add_overlay(img, cmap="Paired", colorbar=True)
      oslicer.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 18 for calling a global function with example usage: test_user_given_cmap_with_colorbar(img) without return types