def validate_scopes(self, client_id, scopes, client, request,
                        *args, **kwargs):
        if hasattr(client, 'validate_scopes'):
            return client.validate_scopes(scopes)
        return set(client.default_scopes).issuperset(set(scopes))
Ensure the client is authorized access to requested scopes.
dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2RequestValidator.validate_scopes