code: def get_visible_scopes(self):
          
          return [k for k, s in current_oauth2server.scope_choices()
                  if k in self.scopes]
docs: Get list of non-internal scopes for token.
  
          :returns: A list of scopes.