code: def test_sql_tracker_store_with_login_db(
      postgres_login_db_connection: sa.engine.Connection,
  ):
      tracker_store = SQLTrackerStore(
          dialect="postgresql",
          host=POSTGRES_HOST,
          port=POSTGRES_PORT,
          username=POSTGRES_USER,
          password=POSTGRES_PASSWORD,
          db=POSTGRES_TRACKER_STORE_DB,
          login_db=POSTGRES_LOGIN_DB,
      )
  
      matching_rows = (
          postgres_login_db_connection.execution_options(
              isolation_level="AUTOCOMMIT"
          )
          .execute(
              sa.text(
                  "SELECT 1 FROM pg_catalog.pg_database WHERE datname = :database_name"
              ),
              database_name=POSTGRES_TRACKER_STORE_DB,
          )
          .rowcount
      )
      assert matching_rows == 1
      assert (
          tracker_store.engine.url.database == POSTGRES_TRACKER_STORE_DB
      )
      tracker_store.engine.dispose()
  
file_path: rasa/tests/integration_tests/core/test_tracker_store.py
imports: import logging
  from typing import List
  from unittest.mock import Mock
  import pytest
  from _pytest.logging import LogCaptureFixture
  from _pytest.monkeypatch import MonkeyPatch
  import sqlalchemy
  from rasa.core.tracker_store import MongoTrackerStore, RedisTrackerStore, SQLTrackerStore
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import Event
  from rasa.shared.core.trackers import DialogueStateTracker
  from .conftest import POSTGRES_HOST, POSTGRES_PORT, POSTGRES_LOGIN_DB, POSTGRES_TRACKER_STORE_DB, POSTGRES_USER, POSTGRES_PASSWORD
label_desc: Use image node_id 1 for calling a global function with example usage: test_sql_tracker_store_with_login_db(postgres_login_db_connection) without return types