<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_utc_date(date):
 """Convert a datetime object from local to UTC format datetime.datetime(2017, 8, 16, 1, 24, 31) Args: date (`datetime`):
 Input datetime object Returns: `datetime` """

    return datetime.utcfromtimestamp(float(date.strftime('%s'))).replace(tzinfo=None) if date else None