code: def test_available_runs(builder: EnsembleBuilder) -> None:
      """
      Expects
      -------
      * Should be able to read runs from the backends rundir where runs are tagged
        {seed}_{numrun}_{budget}
      """
      runsdir = Path(builder.backend.get_runs_directory())
  
      ids = {(0, i, 0.0) for i in range(1, 10)}
      paths = [runsdir / f"{s}_{n}_{b}" for s, n, b in ids]
  
      for path in paths:
          path.mkdir()
  
      available_runs = builder.available_runs()
  
      assert len(available_runs) == len(ids)
      for run_id in available_runs.keys():
          assert run_id in ids
  
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 3 for calling a global function with example usage: test_available_runs(builder) without return types