code: def dask_client_single_worker(make_dask_client: Callable) -> Client:
      """Dask client with only 1 worker
  
      Note
      ----
      May create deadlocks with logging and pynisher
      """
      client = make_dask_client(n_workers=1)
      yield client
  
file_path: auto-sklearn/test/fixtures/dask.py
imports: from __future__ import annotations
  from typing import Callable
  from functools import partial
  from dask.distributed import Client, get_client
  from pytest import FixtureRequest, fixture
label_desc: Use image node_id 5 for calling a global function with example usage: dask_client_single_worker(make_dask_client) without return types