code: def postgres_login_db_connection() -> Iterator[sa.engine.Connection]:
      engine = sa.create_engine(
          sa.engine.url.URL(
              "postgresql",
              host=POSTGRES_HOST,
              port=POSTGRES_PORT,
              username=POSTGRES_USER,
              password=POSTGRES_PASSWORD,
              database=POSTGRES_DEFAULT_DB,
          )
      )
  
      conn = engine.connect()
      try:
          _create_login_db(conn)
          yield conn
      finally:
          _drop_db(conn, POSTGRES_LOGIN_DB)
          _drop_db(conn, POSTGRES_TRACKER_STORE_DB)
          conn.close()
          engine.dispose()
  
file_path: rasa/tests/integration_tests/core/conftest.py
imports: import os
  from typing import Iterator, Text
  import pytest
  import sqlalchemy
  from rasa.core.lock_store import RedisLockStore
label_desc: Use image node_id 2 for calling a global function with example usage: postgres_login_db_connection() without return types