code: def run_migrations_online():
      """Run migrations in 'online' mode.
      In this scenario we need to create an Engine
      and associate a connection with the context.
      """
      connection = config.attributes.get("connection", None)
      if connection is None:
          asyncio.run(run_async_migrations())
      else:
          run_migrations(connection)
  
file_path: dstack/src/dstack/_internal/server/migrations/env.py
imports: import asyncio
  from logging.config import fileConfig
  from alembic import context
  from sqlalchemy import Connection, MetaData, text
  from dstack._internal.server.db import db
  from dstack._internal.server.models import BaseModel
label_desc: Use image node_id 3 for calling a global function with example usage: run_migrations_online() without return types