code: def _mri_orientation(orientation):
      """Get MRI orientation information from an image.
  
      Parameters
      ----------
      orientation : str
          Orientation that you want. Can be "axial", "sagittal", or "coronal".
  
      Returns
      -------
      axis : int
          The dimension of the axis to take slices over when plotting.
      x : int
          The dimension of the x axis.
      y : int
          The dimension of the y axis.
  
      Notes
      -----
      .. versionadded:: 0.21
      .. versionchanged:: 0.24
      """
      _check_option(
          "orientation", orientation, ("coronal", "axial", "sagittal")
      )
      axis = dict(coronal=1, axial=2, sagittal=0)[orientation]
      x, y = sorted(set([0, 1, 2]).difference(set([axis])))
      return axis, x, y
  
imports: import os.path
  from gzip import GzipFile
  from pathlib import Path
  import numpy
  from ._fiff.constants import FIFF
  from ._fiff.meas_info import read_fiducials
  from .surface import _read_mri_surface, read_surface
  from .transforms import Transform, _ensure_trans, apply_trans, combine_transforms, invert_transform, read_ras_mni_t
  from .utils import _check_fname, _check_option, _import_nibabel, _validate_type, get_subjects_dir, logger, verbose
label_desc: Use image node_id 4 for calling a global function with example usage: _mri_orientation(orientation) and returns: axis,  x,  y