def is_day(date):
    try:
        date_format = '%Y-%m-%d'
        is_valid = datetime.datetime.strptime(date, date_format).strftime(
            date_format) == date
    except TypeError:
        is_valid = False
    except __HOLE__:
        is_valid = False

    return is_valid
dataset/ETHPy150Open Dwolla/arbalest/arbalest/pipeline/__init__.py/is_day