code: def _process_fidel_for_initialisation(
      fidel, fidel_to_opt, set_to_fidel_to_opt_with_prob
  ):
      """Returns fidel to fidel_to_opt with probability set_to_fidel_to_opt_with_prob."""
      if np.random.random() < set_to_fidel_to_opt_with_prob:
          return fidel_to_opt
      else:
          return fidel
  
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 5 for calling a global function with example usage: _process_fidel_for_initialisation(fidel, fidel_to_opt, set_to_fidel_to_opt_with_prob) and returns: fidel_to_opt, fidel