code: def test_at_least_one_ensemble(automl: AutoML) -> None:
      """
      Expects
      -------
      * There should be at least one ensemble generated
      """
      assert automl._backend is not None
      ens_dir = Path(automl._backend.get_ensemble_dir())
  
      # TODO make more generic
      assert len(list(ens_dir.glob("*.ensemble"))) > 0
  
file_path: auto-sklearn/test/test_automl/test_post_fit.py
imports: from pathlib import Path
  from autosklearn.automl import AutoML
  from autosklearn.ensemble_building.builder import CANDIDATES_FILENAME
  from pytest import mark
  from pytest_cases import parametrize_with_cases
  from pytest_cases.filters import has_tag
  import test.test_automl.cases
  from test.conftest import DEFAULT_SEED
label_desc: Use image node_id 8 for calling a global function with example usage: test_at_least_one_ensemble(automl) without return types