def METHOD_NAME(payload: dict, jwk_dict: dict, alg: str = "RS256", protected:dict = {}, **kwargs) -> str:
    _key = key_from_jwk_dict(jwk_dict)
    _signer = JWS(payload, alg=alg, **kwargs)
    signature = _signer.sign_compact([_key], protected=protected, **kwargs)
    return signature