<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_period(period: str):
 """ parses period from date range picker. The received values are full ISO date """

    period = period.split(" - ")

    date_from = Datum()
    if len(period[0]) == 10:
        date_from.from_iso_date_string(period[0])
    else:
        date_from.from_iso_long_date(period[0])
    date_from.start_of_day()

    date_to = Datum()
    if len(period[1]) == 10:
        date_to.from_iso_date_string(period[1])
    else:
        date_to.from_iso_long_date(period[1])
    date_to.end_of_day()

    return date_from.value, date_to.value