def _is_date(dt):
    return isinstance(dt,Date) or isinstance(dt,Datetime)
Objects of class datetime.date and datetime.datetime will be recognized as dates
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/_is_date