code: def get_scopes(self):
          
          if not self.authenticated:
              raise ValueError("Must authenticate() as a client first.")
  
          scope = self.client['scope']
          return scope.split()
docs: Returns the scopes for the authenticated client.