class_docstr: Define Unit tests for the Random optimiser on cartesian product spaces. 
docstr: Run the optimiser from given args. 
docstr_tok: ["Run","the","optimiser","from","given","args","."]
code: def _run_optimiser(
      cls,
      raw_prob_funcs,
      domain_config_file,
      worker_manager,
      max_capital,
      mode,
      *args,
      **kwargs,
  ):
      """Run the optimiser from given args."""
      raw_func = raw_prob_funcs[0]
      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.random_optimiser_from_func_caller(
          func_caller,
          worker_manager,
          max_capital,
          mode,
          *args,
          **kwargs,
      )
  
imports: import os
  import unittest
label_desc: Use image node_id 2 for calling the CPRandomOptimiserTestCaseDefinitions obj's underlying member method code with example usage: obj._run_optimiser(cls, raw_prob_funcs, domain_config_file, worker_manager, max_capital, mode) and returns: random_optimiser