def METHOD_NAME(self, kid):
    """
    Retrieves the JSON Web Key used to sign the ID Token
    from the JSON Web Key Set Endpoint
    """
    if "jwks_endpoint" not in self.provider_configuration:
        raise ValueError("jwks_endpoint not found in provider configuration")
    response = requests.get(self.provider_configuration["jwks_endpoint"])
    if response.status_code == 200:
        jwks = response.json()
        for jwk in jwks.get("keys"):
            if jwk.get("kid") == kid:
                return jwk
    return None