code: def _revisions_above_min_for_offline(config, revisions) -> None:
      """
      Check that all supplied revision ids are above the minimum revision for the dialect.
  
      :param config: Alembic config
      :param revisions: list of Alembic revision ids
      :return: None
      """
      dbname = settings.engine.dialect.name
      if dbname == "sqlite":
          raise AirflowException(
              "Offline migration not supported for SQLite."
          )
      min_version, min_revision = (
          ("2.2.0", "7b2661a43ba3")
          if dbname == "mssql"
          else ("2.0.0", "e959f08ac86c")
      )
  
      # Check if there is history between the revisions and the start revision
      # This ensures that the revisions are above `min_revision`
      for rev in revisions:
          if not _revision_greater(config, rev, min_revision):
              raise ValueError(
                  f"Error while checking history for revision range {min_revision}:{rev}. "
                  f"Check that {rev} is a valid revision. "
                  f"For dialect {dbname!r}, supported revision for offline migration is from {min_revision} "
                  f"which corresponds to Airflow {min_version}."
              )
  
imports: from __future__ import annotations
  import contextlib
  import enum
  import json
  import logging
  import os
  import sys
  import time
  import warnings
  from dataclasses import dataclass
  from tempfile import gettempdir
  from typing import TYPE_CHECKING, Callable, Generator, Iterable
  from sqlalchemy import Table, and_, column, delete, exc, func, inspect, literal, or_, select, table, text, tuple_
  import airflow
  from airflow import settings
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.models import import_all_models
  from airflow.utils import helpers
  from airflow.utils.session import NEW_SESSION, create_session, provide_session
label_desc: Use image node_id 33 for calling a global function with example usage: _revisions_above_min_for_offline(config, revisions) without return types