code: def test_paths_created_with_ensemble(automl: AutoML) -> None:
      """
      Expects
      -------
      * The given paths for an automl with an ensemble should include paths
      specific to ensemble building
      """
      assert automl._backend is not None
  
      partial = Path(automl._backend.internals_directory)
      expected = [
          partial / fixture
          for fixture in (
              "ensembles",
              "ensemble_history.json",
              CANDIDATES_FILENAME,
          )
      ]
  
      for path in expected:
          assert path.exists()
  
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 6 for calling a global function with example usage: test_paths_created_with_ensemble(automl) without return types