code: def get_cp_domain_initial_fidels(
      fidel_space,
      num_samples,
      fidel_to_opt,
      set_to_fidel_to_opt_with_prob,
      euclidean_sample_type="latin_hc",
      integral_sample_type="latin_hc",
      nn_sample_type="rand",
      *args,
      **kwargs,
  ):
      """Function to return the initial fidelities for CP Domain."""
      set_to_fidel_to_opt_with_prob = (
          0.0
          if set_to_fidel_to_opt_with_prob is None
          else set_to_fidel_to_opt_with_prob
      )
      init_fidels = sample_from_cp_domain(
          fidel_space,
          num_samples,
          euclidean_sample_type=euclidean_sample_type,
          integral_sample_type=integral_sample_type,
          nn_sample_type=nn_sample_type,
          *args,
          **kwargs,
      )
      return [
          _process_fidel_for_initialisation(
              fidel, fidel_to_opt, set_to_fidel_to_opt_with_prob
          )
          for fidel in init_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 7 for calling a global function with example usage: get_cp_domain_initial_fidels(fidel_space, num_samples, fidel_to_opt, set_to_fidel_to_opt_with_prob, euclidean_sample_type, integral_sample_type, nn_sample_type) and returns: unknown