code: def _get_alembic_config(url: str) -> Config:
      alembic_dir = _get_alembic_dir()
      alembic_ini_path = alembic_dir / "alembic.ini"
      alembic_cfg = Config(alembic_ini_path)
      alembic_cfg.set_main_option("script_location", str(alembic_dir))
      url = url.replace(
          "%", "%%"
      )  # Same as here: https://github.com/mlflow/mlflow/issues/1487
      alembic_cfg.set_main_option("sqlalchemy.url", url)
      return alembic_cfg
  
file_path: mlflow/mlflow/server/auth/db/utils.py
imports: from pathlib import Path
  from alembic.command import upgrade
  from alembic.config import Config
  from alembic.migration import MigrationContext
  from alembic.script import ScriptDirectory
  from sqlalchemy.engine.base import Engine
label_desc: Use image node_id 2 for calling a global function with example usage: _get_alembic_config(url) and returns: alembic_cfg