def METHOD_NAME(self, request, *scopes, **kwargs):
    # type: (PipelineRequest, *str, **Any) -> None
    """Acquire a token from the credential and authorize the request with it.
    Keyword arguments are passed to the credential's get_token method. The token will be cached and used to
    authorize future requests.
    :param ~azure.core.pipeline.PipelineRequest request: the request
    :param str scopes: required scopes of authentication
    """
    self._token = self._credential.get_token(*scopes, **kwargs)
    self._update_headers(request.http_request.headers, self._token.token)