code: def test_get_prequeries(mocker: MockFixture) -> None:
      """
      Tests for ``get_prequeries``.
      """
      mocker.patch.object(
          Database,
          "get_sqla_engine_with_context",
      )
      db_engine_spec = mocker.patch.object(Database, "db_engine_spec")
      db_engine_spec.get_prequeries.return_value = [
          "set a=1",
          "set b=2",
      ]
  
      database = Database(database_name="db")
      with database.get_raw_connection() as conn:
          conn.cursor().execute.assert_has_calls(
              [mocker.call("set a=1"), mocker.call("set b=2")]
          )
  
file_path: superset/tests/unit_tests/models/core_test.py
imports: import json
  from datetime import datetime
  from typing import Optional
  import pytest
  from pytest_mock import MockFixture
  from sqlalchemy.engine.reflection import Inspector
  from superset.connectors.sqla.models import SqlaTable, TableColumn
  from superset.models.core import Database
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_prequeries(mocker) without return types