code: def make_dask_client(
      request: FixtureRequest,
  ) -> Callable[[int], Client]:
      """Factory to make a Dask client and a function to close it
  
      Parameters
      ----------
      n_workers: int = 1
          How many workers to have in the dask client
  
      Returns
      -------
      Client, Callable
          The client and a function to call to close that client
      """
      return partial(create_test_dask_client, id=request.node.nodeid)
  
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 3 for calling a global function with example usage: make_dask_client(request) and returns: partial