def METHOD_NAME(
    secret_key: str,
    invitation_code: str,
    invitation_data: InvitationInputs,
):
    invitation = decrypt_invitation(
        invitation_code=invitation_code,
        secret_key=secret_key.encode(),
    )
    assert invitation.dict(exclude={"created"}) == invitation_data.dict()