code: def test_valid(name: str, expected: bool) -> None:
      """
      Expects
      -------
      * Should be able to correctly consider valid run dir names
      """
      path = Path(name)
      assert Run.valid(path) == expected
  
file_path: auto-sklearn/test/test_ensemble_builder/test_run.py
imports: from __future__ import annotations
  from typing import Callable
  import pickle
  import time
  from pathlib import Path
  import numpy
  from autosklearn.ensemble_building import Run
  from pytest_cases import parametrize
label_desc: Use image node_id 8 for calling a global function with example usage: test_valid(name, expected) without return types