def verify(self, **kwargs):
        super(OpenIDSchema, self).verify(**kwargs)

        if "birthdate" in self:
            # Either YYYY-MM-DD or just YYYY or 0000-MM-DD
            try:
                _ = time.strptime(self["birthdate"], "%Y-%m-%d")
            except __HOLE__:
                try:
                    _ = time.strptime(self["birthdate"], "%Y")
                except ValueError:
                    try:
                        _ = time.strptime(self["birthdate"], "0000-%m-%d")
                    except ValueError:
                        raise VerificationError("Birthdate format error", self)

        return True
dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/message.py/OpenIDSchema.verify