def METHOD_NAME(
    encoded_jwt: str, public_key: Union[Certificate, RSAPublicKey], options: Optional[Dict[str, Any]] = None
) -> Json:
    """Decode a JWT using an RSA public key."""
    if isinstance(public_key, Certificate):
        public_key = cast(RSAPublicKey, public_key.public_key())
        assert isinstance(public_key, RSAPublicKey)
    return jwt.decode(encoded_jwt, public_key, algorithms=["RS256"], options=options)  # type: ignore