    def groups_for_server(server):
        """Get set of group names for a given server"""
        username, _, servername = server.partition("/")
        return groups_for_user(username)
Get set of group names for a given server
jupyterhub/scopes.py