code: def validate_request(self, request):
          
          token = get_token_from_header(request)
          return self.request_validator.validate_bearer_token(
              token, request.scopes, request)
docs: :param request: OAuthlib request.
          :type request: oauthlib.common.Request