<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def available_on_day(self, day):
 """ Return events that are available on a given day. """

        if isinstance(day, datetime):
            d = day.date()
        else:
            d = day
        return self.starts_within(d, d)