code: def get_cp_domain_initial_qinfos(
      domain,
      num_samples,
      fidel_space=None,
      fidel_to_opt=None,
      set_to_fidel_to_opt_with_prob=None,
      dom_euclidean_sample_type="latin_hc",
      dom_integral_sample_type="latin_hc",
      dom_nn_sample_type="rand",
      fidel_space_euclidean_sample_type="latin_hc",
      fidel_space_integral_sample_type="latin_hc",
      fidel_space_nn_sample_type="rand",
      *args,
      **kwargs,
  ):
      """Get initial qinfos in Cartesian product domain."""
      # pylint: disable=too-many-arguments
      ret_dom_pts = sample_from_cp_domain(
          domain,
          num_samples,
          euclidean_sample_type=dom_euclidean_sample_type,
          integral_sample_type=dom_integral_sample_type,
          nn_sample_type=dom_nn_sample_type,
          *args,
          **kwargs,
      )
      if fidel_space is None:
          ret_dom_pts = ret_dom_pts[:num_samples]
          return [Namespace(point=x) for x in ret_dom_pts]
      else:
          ret_fidels = get_cp_domain_initial_fidels(
              fidel_space,
              num_samples,
              fidel_to_opt,
              set_to_fidel_to_opt_with_prob,
              euclidean_sample_type=fidel_space_euclidean_sample_type,
              integral_sample_type=fidel_space_integral_sample_type,
              nn_sample_type=fidel_space_nn_sample_type,
              *args,
              **kwargs,
          )
          return [
              Namespace(point=ipt, fidel=ifl)
              for (ipt, ifl) in zip(ret_dom_pts, ret_fidels)
          ]
  
imports: from argparse import Namespace
  import numpy
  from .cp_domain_utils import get_processed_from_raw_via_config, get_raw_from_processed_via_config, sample_from_cp_domain
  from ..utils.general_utils import map_to_bounds, flatten_list_of_lists
  from ..utils.oper_utils import direct_ft_maximise, latin_hc_sampling, pdoo_maximise, random_maximise
label_desc: Use image node_id 9 for calling a global function with example usage: get_cp_domain_initial_qinfos(domain, num_samples, fidel_space, fidel_to_opt, set_to_fidel_to_opt_with_prob, dom_euclidean_sample_type, dom_integral_sample_type, dom_nn_sample_type, fidel_space_euclidean_sample_type, fidel_space_integral_sample_type, fidel_space_nn_sample_type) and returns: unknown, unknown