code: def make_dummy_ta(
      configspace_small: ConfigurationSpace,
      make_scenario: Callable[..., Scenario],
  ) -> Callable[..., TargetFunctionRunner]:
      """Make a TargetFunctionRunner, ``make_dummy_ta(func)``"""
  
      def _make(
          target_function: Callable, n_workers: int = 2
      ) -> TargetFunctionRunner:
          scenario = make_scenario(
              configspace=configspace_small, n_workers=n_workers
          )
          return TargetFunctionRunner(
              target_function=target_function,
              scenario=scenario,
              required_arguments=["seed", "instance"],
          )
  
      return _make
  
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 4 for calling a global function with example usage: make_dummy_ta(configspace_small, make_scenario) and returns: _make, TargetFunctionRunner