code: def test_annotations():
      """Tests for ``display.annotate()``.
      In particular, exercise some of the keyword arguments for scale bars.
      """
      orthoslicer = OrthoSlicer(cut_coords=(None, None, None))
      orthoslicer.annotate(size=10, left_right=True, positions=False)
      orthoslicer.annotate(
          size=12,
          left_right=False,
          positions=False,
          scalebar=True,
          scale_size=2.5,
          scale_units="cm",
          scale_loc=3,
          frameon=True,
      )
      orthoslicer.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 21 for calling a global function with example usage: test_annotations() without return types