def METHOD_NAME(jwt_headers, jwt_private_key):
    def _make_jwt(payload, headers=None):
        if not headers:
            headers = jwt_headers
        return jwt.encode(payload, jwt_private_key, algorithm="RS256", headers=headers)
    return _make_jwt