<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def eqdate(y):
 """ Like eq but compares datetime with y,m,d tuple. Also accepts magic string 'TODAY'. """

    y = datetime.date.today() if y == 'TODAY' else datetime.date(*y)
    return lambda x: x == y