code: def set_sqlite_pragma(dbapi_connection, connection_record):
      if isinstance(dbapi_connection, SQLite3Connection):
          cursor = dbapi_connection.cursor()
          cursor.execute("PRAGMA foreign_keys=ON")
          cursor.close()
  
file_path: argilla/src/argilla/server/database.py
imports: import os
  from collections import OrderedDict
  from sqlite3 import Connection
  from typing import TYPE_CHECKING, Generator
  from sqlalchemy import event, make_url
  from sqlalchemy.engine import Engine
  from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
  import argilla
  from argilla.server.settings import settings
label_desc: Use image node_id 1 for calling a global function with example usage: set_sqlite_pragma(dbapi_connection, connection_record) without return types