code: def test_internally_created_client(
      make_dummy_ta: Callable[..., TargetFunctionRunner]
  ) -> None:
      """
      Expects
      -------
      * When no Client is passed, we create one and as such we need to make sure that
        we have a scheduler file is create and the client is closed at the end
      """
      single_worker = make_dummy_ta(target, n_workers=2)
      runner = DaskParallelRunner(single_worker=single_worker)
  
      runner = DaskParallelRunner(single_worker=runner)
      assert (
          runner._scheduler_file is not None
          and runner._scheduler_file.exists()
      )
  
      # Check the client is running
      client = runner._client
      assert client.status == "running"
  
      # End the runner
      runner.close()
  
      # Check the client it created is closed
      assert client.status == "closed"
  
file_path: SMAC3/tests/test_runner/test_dask_runner.py
imports: from __future__ import annotations
  from typing import Callable
  import time
  import pytest
  from ConfigSpace import ConfigurationSpace
  from dask.distributed import Client
  from smac.runhistory import TrialInfo, TrialValue
  from smac.runner.abstract_runner import StatusType
  from smac.runner.dask_runner import DaskParallelRunner
  from smac.runner.target_function_runner import TargetFunctionRunner
  from smac.scenario import Scenario
label_desc: Use image node_id 8 for calling a global function with example usage: test_internally_created_client(make_dummy_ta) without return types