def _extractReturnURL(endpoint):
    if endpoint.matchTypes([RP_RETURN_TO_URL_TYPE]):
        return endpoint.uri
    else:
        return None
If the endpoint is a relying party OpenID return_to endpoint,
dataset/ETHPy150Open openid/python-openid/openid/server/trustroot.py/_extractReturnURL