<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def semiyearly(date=datetime.date.today()):
 """ Twice a year. """

    return datetime.date(date.year, 1 if date.month < 7 else 7, 1)