code: def case_real_runs(
      automl: AutoML,
      make_ensemble_builder: Callable[..., EnsembleBuilder],
  ) -> EnsembleBuilder:
      """Uses real runs from a fitted automl instance which have an ensemble
  
      This will copy the ensemble builder based on the AutoML instance parameterss. This
      includes ensemble_nbest, ensemble_size, etc...
      """
      builder = make_ensemble_builder(automl=automl)
      return builder
  
file_path: auto-sklearn/test/test_ensemble_builder/test_ensemble_builder_real.py
imports: from __future__ import annotations
  from typing import Callable
  from autosklearn.automl import AutoML
  from autosklearn.ensemble_building.builder import EnsembleBuilder
  from pytest_cases import parametrize_with_cases
  from pytest_cases.filters import has_tag
  from unittest.mock import MagicMock, patch
  import test.test_automl.cases
label_desc: Use image node_id 1 for calling a global function with example usage: case_real_runs(automl, make_ensemble_builder) and returns: builder