def METHOD_NAME(self, oauth_client):
    def _sign(params):
        params["oauth_signature"] = oauth_client.get_oauth_signature(
            oauthlib.common.Request(
                "http://localhost/lti_launches", "POST", body=params
            )
        )
        return params
    return _sign