def bayesdb_txn_push(bdb):
    if bdb.txn_depth == 0:
        bayesdb_txn_init(bdb)
    else:
        assert bdb.cache is not None
    bdb.txn_depth += 1
dataset/ETHPy150Open probcomp/bayeslite/src/txn.py/bayesdb_txn_push/original