code: def _raise_load_options_not_supported_error(
      method, prob, domain_type, capital_type
  ):
      """Raises an exception if the combination of method/prob/domain are not supported."""
      # problem
      prob_str_dict = {
          "opt": "optimisation",
          "moo": "multi-objective optimisation",
          "mfopt": "multi-fidelity optimisation",
      }
      if prob not in prob_str_dict.keys():
          raise ValueError("Unknown problem %s." % (prob))
      prob_str = prob_str_dict[prob]
      # method
      meth_str_dict = {
          "bo": "Bayesian-Optimisation",
          "ea": "Evolutionary-Algorithms",
          "ga": "Evolutionary-Algorithms",
          "direct": "DiRect",
          "pdoo": "PDOO",
      }
      if method not in meth_str_dict.keys():
          raise ValueError("Unknown method %s." % (method))
      meth_str = meth_str_dict[method]
      # domain
      if domain_type not in ["euclidean", "cartesian_product"]:
          dom_err_msg = (
              "We do not support directly optimising on %s spaces. Consider "
              + "wrapping your domain with a CartesianProduct Domain. See "
              + "dragonfly/exd/domains.py."
          )
          raise ValueError(dom_err_msg)
      err_msg = (
          "Draogonfly not support %s problems with %s on %s domains with capital "
          + "type %s."
      ) % (prob_str, meth_str, domain_type, capital_type)
      raise ValueError(err_msg)
  
file_path: dragonfly/dragonfly/apis/api_utils.py
imports: from argparse import Namespace
  import numpy
  from ..exd.cp_domain_utils import load_config_file, get_processed_func_from_raw_func_for_cp_domain_fidelity, get_processed_func_from_raw_func_for_cp_domain
  from ..exd.domains import EuclideanDomain
  from ..exd.worker_manager import MultiProcessingWorkerManager, SyntheticWorkerManager, AbstractWorkerManager
  from ..opt.ga_optimiser import ga_opt_args
  from ..opt.gp_bandit import get_all_euc_gp_bandit_args, get_all_cp_gp_bandit_args, get_all_mf_euc_gp_bandit_args, get_all_mf_cp_gp_bandit_args
  from ..opt.random_optimiser import euclidean_random_optimiser_args, mf_euclidean_random_optimiser_args, cp_random_optimiser_args, mf_cp_random_optimiser_args
  from ..opt.multiobjective_gp_bandit import get_all_euc_moo_gp_bandit_args, get_all_cp_moo_gp_bandit_args
  from ..opt.random_multiobjective_optimiser import euclidean_random_multiobjective_optimiser_args, cp_random_multiobjective_optimiser_args
  from ..utils.general_utils import map_to_bounds
  from ..utils.option_handler import load_options
label_desc: Use image node_id 2 for calling a global function with example usage: _raise_load_options_not_supported_error(method, prob, domain_type, capital_type) without return types