code: def test_candidates_no_filters(
      builder: EnsembleBuilder, make_run: Callable[..., Run]
  ) -> None:
      """
      Expects
      -------
      * Should have nothing in common between candidates and discarded
      * Should not filter out any viable runs if no filters set. Here a viable run
        has a loss and ensemble predictions
      """
      metrics = builder.metrics
      dummy = make_run(dummy=True)
      runs = [
          make_run(losses={m.name: n for m in metrics})
          for n in range(10)
      ]
  
      candidates, discarded = builder.candidate_selection(
          runs,
          dummy,
          better_than_dummy=False,
          nbest=None,
      )
  
      assert len(set(candidates) & discarded) == 0
      assert len(candidates) == len(runs)
      assert len(discarded) == 0
  
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 7 for calling a global function with example usage: test_candidates_no_filters(builder, make_run) without return types