<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _ephem_to_timezone(date, tzinfo):
 # utility from unreleased PyEphem 3.6.7.1 """"Convert a PyEphem Date into a timezone aware python datetime"""

    seconds, microseconds = _ephem_convert_to_seconds_and_microseconds(date)
    date = dt.datetime.fromtimestamp(seconds, tzinfo)
    date = date.replace(microsecond=microseconds)
    return date