code: def test_failing_transaction(db):
      with db.transaction() as conn:
          conn.query("INSERT INTO foo VALUES (42)")
          conn.query("INSERT INTO foo VALUES (43)")
          raise ValueError()
  
      assert db.query("SELECT count(*) AS n FROM foo")[0].n == 0
  
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_failing_transaction(db) without return types