def METHOD_NAME(axis_name):
    """
    Convert the axis name to its axis index in the data volume.
    """
    if axis_name == 'sagittal':
        return 0
    if axis_name == 'coronal':
        return 1
    if axis_name == 'axial':
        return 2