def METHOD_NAME(  # noqa: PLR0913
    cls,
    execution_engine: SqlAlchemyExecutionEngine,
    metric_domain_kwargs: dict,
    metric_value_kwargs: dict,
    metrics: Dict[str, Any],
    runtime_configuration: dict,
):
    batch_id: Optional[str] = metric_domain_kwargs.get("batch_id")
    if batch_id is None:
        if execution_engine.batch_manager.active_batch_data_id is not None:
            batch_id = execution_engine.batch_manager.active_batch_data_id
        else:
            raise GreatExpectationsError(
                "batch_id could not be determined from domain kwargs and no active_batch_data is loaded into the "
                "execution engine"
            )
    batch_data: SqlAlchemyBatchData = cast(
        SqlAlchemyBatchData,
        execution_engine.batch_manager.batch_data_cache.get(batch_id),
    )
    if batch_data is None:
        raise GreatExpectationsError(
            "the requested batch is not available; please load the batch into the execution engine."
        )
    return _get_sqlalchemy_column_metadata(execution_engine.engine, batch_data)