code: def cp_random_optimiser_from_raw_args(
      raw_func, domain_config_file, *args, **kwargs
  ):
      """A random optimiser on Cartesian product spaces."""
      # pylint: disable=no-member
      cp_dom, orderings = load_cp_domain_from_config_file(
          domain_config_file
      )
      proc_func = get_processed_func_from_raw_func_for_cp_domain(
          raw_func,
          cp_dom,
          orderings.index_ordering,
          orderings.dim_ordering,
      )
      func_caller = CPFunctionCaller(
          proc_func,
          cp_dom,
          raw_func=raw_func,
          domain_orderings=orderings,
      )
      return random_optimiser_from_func_caller(
          func_caller, *args, **kwargs
      )
  
imports: from argparse import Namespace
  import numpy
  from ..exd.cp_domain_utils import get_processed_func_from_raw_func_for_cp_domain, load_cp_domain_from_config_file
  from ..exd import domains
  from ..exd.exd_utils import get_euclidean_initial_qinfos, get_cp_domain_initial_qinfos
  from ..exd.exd_core import mf_exd_args
  from ..exd.experiment_caller import CPFunctionCaller
  from ..exd.cp_domain_utils import sample_from_cp_domain
  from ..exd.worker_manager import SyntheticWorkerManager
  from .blackbox_optimiser import BlackboxOptimiser, blackbox_opt_args, CalledMFOptimiserWithSFCaller
  from ..utils.option_handler import load_options
  from ..utils.reporters import get_reporter
  from ..utils.general_utils import map_to_bounds
label_desc: Use image node_id 3 for calling a global function with example usage: cp_random_optimiser_from_raw_args(raw_func, domain_config_file) and returns: random_optimiser_from_func_caller