def get_ids_for_all_tests(session=None):
    session = session or get_session()
    return db_utils.model_query(models.Test, session).value(models.Test.id)
create a Session object
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_ids_for_all_tests--crossover with--dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/session.py/Session.__init__