@contextmanager
    def session(self, *args, **kwargs):
        yield self.start_session(*args, **kwargs)
        self.close_session()
Session handling using a context manager
dataset/ETHPy150Open francelabs/datafari/debian7/zookeeper/src/contrib/huebrowser/zkui/src/zkui/rest.py/ZooKeeper.session