<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_time(match):
 """extract time from a time_re match."""

    hour = int(match.group('hour'))
    minute = int(match.group('minute'))
    return dt.time(hour, minute)