code: def ds_write(tmp_path_factory):
      db_directory = tmp_path_factory.mktemp("dbs")
      db_path = str(db_directory / "data.db")
      db_path_immutable = str(db_directory / "immutable.db")
      db1 = sqlite3.connect(str(db_path))
      db2 = sqlite3.connect(str(db_path_immutable))
      for db in (db1, db2):
          db.execute("vacuum")
          db.execute(
              "create table docs (id integer primary key, title text, score float, age integer)"
          )
      ds = Datasette([db_path], immutables=[db_path_immutable])
      yield ds
      db.close()
  
imports: from datasette.app import Datasette
  from datasette.utils import sqlite3
  import pytest
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: ds_write(tmp_path_factory) without return types