def datetime_to_year_quarter(dt):
year = dt.year<EOL>quarter = int(math.ceil(float(dt.month)/<NUM_LIT:3>))<EOL>return (year, quarter)<EOL>
Args:
    dt: a datetime
Returns:
    tuple of the datetime's year and quarter