def METHOD_NAME(date: datetime = timezone.now()) -> int:
    """Calculate the current scholar year. The date of changement from one
    scholar year to another is fixed on the 1st June.
    Examples
    --------
    scholar_year(10 octobre 2021) => 2021
    scholar_year(25 february 2022) => 2021
    Parameters
    ----------
    date : datetime, optional
        A given date, by default today
    Returns
    -------
    int
        The scholar year corresponding to the given date
    """
    year = date.year
    month = date.month
    if month < 6:
        year -= 1
    return year