code: def test_fit_ensemble_with_no_targets_raises(
      builder: EnsembleBuilder,
      make_run: Callable[..., Run],
  ) -> None:
      """
      Expects
      -------
      * If no ensemble targets can be found then `fit_ensemble` should fail
      """
      # Delete the targets and then try fit ensemble
      targets_path = Path(
          builder.backend._get_targets_ensemble_filename()
      )
      targets_path.unlink()
  
      candidates = [make_run(backend=builder.backend) for _ in range(5)]
      with pytest.raises(
          ValueError, match="`fit_ensemble` could not find any .*"
      ):
          builder.fit_ensemble(
              candidates=candidates,
              runs=candidates,
          )
  
imports: from __future__ import annotations
  from typing import Callable
  import random
  import time
  from pathlib import Path
  import numpy
  from autosklearn.automl_common.common.utils.backend import Backend
  from autosklearn.ensemble_building import EnsembleBuilder, Run
  from autosklearn.metrics import Scorer, accuracy, make_scorer
  from autosklearn.util.functional import bound, pairs
  import pytest
  from pytest_cases import fixture, parametrize
  from unittest.mock import Mock, patch
  from test.conftest import DEFAULT_SEED
  from test.fixtures.metrics import acc_with_X_data
label_desc: Use image node_id 24 for calling a global function with example usage: test_fit_ensemble_with_no_targets_raises(builder, make_run) without return types