code: def test_plain_db(db):
      """Manipulate database by `db.query` without transactions."""
      db.query("INSERT INTO foo VALUES (42)")
      db.query("INSERT INTO foo VALUES (43)")
      assert db.query("SELECT count(*) AS n FROM foo")[0].n == 2
  
imports: import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_plain_db(db) without return types