code: def make_runner(
      configspace_small: ConfigurationSpace,
      make_scenario: Callable[..., Scenario],
  ) -> Callable[..., TargetFunctionRunner]:
      """Make a TargetFunctionRunner, ``make_dummy_ta(func)``"""
  
      def _make(
          target_function: Callable,
          use_multi_objective: bool = False,
          use_instances: bool = False,
      ) -> TargetFunctionRunner:
          scenario = make_scenario(
              configspace=configspace_small,
              use_multi_objective=use_multi_objective,
          )
  
          required_arguments = ["seed"]
          if use_instances:
              required_arguments += ["instance"]
  
          return TargetFunctionRunner(
              target_function=target_function,
              scenario=scenario,
              required_arguments=required_arguments,
          )
  
      return _make
  
imports: from __future__ import annotations
  from typing import Callable
  import time
  import pytest
  from ConfigSpace import Configuration, ConfigurationSpace
  from smac.runhistory import TrialInfo
  from smac.runner.abstract_runner import StatusType
  from smac.runner.target_function_runner import TargetFunctionRunner
  from smac.scenario import Scenario
label_desc: Use image node_id 7 for calling a global function with example usage: make_runner(configspace_small, make_scenario) and returns: _make, TargetFunctionRunner