code: def set_target_metadata(metadata: MetaData):
      global target_metadata
      target_metadata = metadata
  
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 1 for calling a global function with example usage: set_target_metadata(metadata) without return types