code: def case_real_runs(
      automl: AutoML,
      make_ensemble_builder_manager: Callable[
          ..., EnsembleBuilderManager
      ],
  ) -> EnsembleBuilderManager:
      """Uses real runs from a fitted automl instance"""
      manager = make_ensemble_builder_manager(
          backend=automl._backend,
          metric=automl._metrics[0],
          task=automl._task,
          dataset_name=automl._dataset_name,
          seed=automl._seed,
          logger_port=automl._logger_port,
          random_state=DEFAULT_SEED,
      )
      return manager
  
file_path: auto-sklearn/test/test_ensemble_builder/test_manager.py
imports: from __future__ import annotations
  from typing import Callable
  from autosklearn.automl import AutoML
  from autosklearn.ensemble_building import EnsembleBuilderManager
  from pytest_cases import parametrize_with_cases
  import test.test_automl.cases
  from test.conftest import DEFAULT_SEED
label_desc: Use image node_id 1 for calling a global function with example usage: case_real_runs(automl, make_ensemble_builder_manager) and returns: manager