def session(self):
        session = None
        done = False
        while not done:
            try:
                session = self.session_pool.pop()
            except IndexError:
                session = Session(self)
                done = True
            else:
                if session.healthy:
                    session.connection.reset()
                    done = session.healthy
        return session
Test resolution of __typeof queries, for field in referencing
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/packages/neo4j/v1/session.py/Driver.session--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3TypeOfTests.testTypeOfReferenceNone