code: def test_requires_loss_update_with_no_loss(
      builder: EnsembleBuilder,
      make_run: Callable[..., Run],
  ) -> None:
      """
      Expects
      -------
      * Should include runs that have no loss
      """
      metrics = builder.metrics
      run_okay = [
          make_run(losses={m.name: 10 for m in metrics})
          for _ in range(5)
      ]
      run_no_loss = [make_run() for _ in range(5)]
  
      runs = run_okay + run_no_loss
  
      requires_update = builder.requires_loss_update(runs)
  
      assert set(run_no_loss) == set(requires_update)
  
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 6 for calling a global function with example usage: test_requires_loss_update_with_no_loss(builder, make_run) without return types