class_docstr: Class to execute target functions from scripts. Uses `Popen` to execute the script in a
   subprocess.
  
  The following example shows how the script is called:
  ``target_function --instance=test --instance_features=test --seed=0 --hyperparameter1=5323``
  
  The script must return an echo in the following form (white-spaces are removed):
  ``cost=0.5; runtime=0.01; status=SUCCESS; additional_info=test`` (single-objective)
  ``cost=0.5, 0.4; runtime=0.01; status=SUCCESS; additional_info=test`` (multi-objective)
  
  The status must be a string and must be one of the ``StatusType`` values. However, ``runtime``,
  ``status`` and ``additional_info`` are optional.
  
  Note
  ----
  Everytime an instance is passed, also an instance feature in form of a comma-separated list
  (no spaces) of floats is passed. If no instance feature for the instance is given,
  an empty list is passed.
  
  Parameters
  ----------
  target_function : Callable
      The target function.
  scenario : Scenario
  required_arguments : list[str]
      A list of required arguments, which are passed to the target function.
docstr: Calls the algorithm, which is processed in the ``run`` method.
docstr_tok: ["Calls","the","algorithm",",","which","is","processed","in","the","``","run","``","method","."]
code: def __call__(
      self,
      algorithm_kwargs: dict[str, Any],
  ) -> tuple[str, str]:
      """Calls the algorithm, which is processed in the ``run`` method."""
      cmd = [self._target_function]
      for k, v in algorithm_kwargs.items():
          v = str(v)
          k = str(k)
  
          # Let's remove some spaces
          v = v.replace(" ", "")
  
          cmd += [f"--{k}={v}"]
  
      logger.debug(f"Calling: {' '.join(cmd)}")
      p = Popen(
          cmd,
          shell=False,
          stdout=PIPE,
          stderr=PIPE,
          universal_newlines=True,
      )
      output, error = p.communicate()
  
      logger.debug("Stdout: %s" % output)
      logger.debug("Stderr: %s" % error)
  
      return output, error
  
file_path: SMAC3/smac/runner/target_function_script_runner.py
imports: from __future__ import annotations
  from typing import Any
  import time
  from subprocess import PIPE, Popen
  from ConfigSpace import Configuration
  from smac.runner.abstract_runner import StatusType
  from smac.runner.abstract_serial_runner import AbstractSerialRunner
  from smac.scenario import Scenario
  from smac.utils.logging import get_logger
label_desc: Use image node_id 4 for calling the TargetFunctionScriptRunner obj's underlying member method code with example usage: obj.__call__(algorithm_kwargs) and returns: output,  error