def sort_session_type(date, breaks):
    """Sorts the given date to the proper session_type

    Keyword arguments:
    date -- the current date we want to sort, datetime.date object
    breaks -- a dictionary containing all of the school breaks and their corresponding ranges
    """
    for label, dates in breaks.items():
        if dates[0] <= date <= dates[1]:
            return label
    return "regular"