code: def local_cuda_client(
      request, pytestconfig: pytest.Config
  ) -> Generator:
      kwargs = {}
      if hasattr(request, "param"):
          kwargs.update(request.param)
      if pytestconfig.getoption("--use-rmm-pool"):
          if tm.no_rmm()["condition"]:
              raise ImportError(
                  "The --use-rmm-pool option requires the RMM package"
              )
          import rmm
  
          kwargs["rmm_pool_size"] = "2GB"
      if tm.no_dask_cuda()["condition"]:
          raise ImportError(
              "The local_cuda_cluster fixture requires dask_cuda package"
          )
      from dask.distributed import Client
      from dask_cuda import LocalCUDACluster
  
      yield Client(LocalCUDACluster(**kwargs))
  
imports: from typing import Generator, Sequence
  import pytest
  from xgboost import testing
label_desc: Use image node_id 2 for calling a global function with example usage: local_cuda_client(request, pytestconfig) without return types