from datetime import datetime


def deserialize_date(dct):
    """Deserialize a string in ISO 8601 format to a datetime object"""
    if "__date__" in dct:
        return datetime.fromisoformat(dct["value"])
    return dct