code: def preprocess_loaded_data_for_domain(loaded_data, experiment_caller):
      """Preprocesses loaded data."""
      if (
          hasattr(experiment_caller, "config")
          and experiment_caller.config is not None
      ):
          config = experiment_caller.config
          if ("config_points" in loaded_data) and (
              not "points" in loaded_data
          ):
              loaded_data["points"] = [
                  get_processed_from_raw_via_config(cpt, config)
                  for cpt in loaded_data["config_points"]
              ]
          if ("config_fidels" in loaded_data) and (
              not "fidels" in loaded_data
          ):
              loaded_data["fidels"] = [
                  get_processed_from_raw_via_config(cf, config)
                  for cf in loaded_data["config_fidels"]
              ]
      return loaded_data
  
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 18 for calling a global function with example usage: preprocess_loaded_data_for_domain(loaded_data, experiment_caller) and returns: loaded_data