code: def read_migrations_from_build_yaml(service: str) -> List[dict]:
      with open("build.yaml", "r", encoding="utf-8") as f:
          build = yaml.safe_load(f)
  
      for step in build["steps"]:
          if step["name"] == f"{service}_database":
              return [
                  {
                      **m,
                      "script": m["script"].replace(
                          "/io/", f"{service}/"
                      ),
                      "online": True,
                  }
                  for m in step["migrations"]
              ]
      raise ValueError(f"No database for service {service}")
  
file_path: hail/ci/create_local_database.py
imports: import asyncio
  import os
  import tempfile
  from typing import List
  import typer
  import yaml
  from create_database import create_migration_tables, migrate
  from gear import Database
label_desc: Use image node_id 2 for calling a global function with example usage: read_migrations_from_build_yaml(service) and returns: unknown