def list_sessions(self) -> List[Session]:
        """List all the active sessions in Livy."""
        data = self._client.get("/sessions")
        return [Session.from_json(item) for item in data["sessions"]]
def list_sessions ( self ) -> List [ Session ] : data = self . _client . get ( "/sessions" ) return [ Session . from_json ( item ) for item in data [ "sessions" ] ]
List all the active sessions in Livy.