code: def get_processed_func_from_raw_func_via_config(raw_func, config):
      """Returns a processed function from the raw function based on the ordering."""
      if hasattr(config, "fidel_space"):
          return (
              get_processed_func_from_raw_func_for_cp_domain_fidelity(
                  raw_func, config
              )
          )
      else:
          return get_processed_func_from_raw_func_for_cp_domain(
              raw_func,
              config.domain,
              config.domain_orderings.index_ordering,
              config.domain_orderings.dim_ordering,
          )
  
imports: from __future__ import print_function
  from argparse import Namespace
  from copy import deepcopy
  import numpy
  from warnings import warn
  from .None import domains
  from ..parse.config_parser import config_parser
  from ..utils.general_utils import flatten_list_of_objects_and_iterables, get_original_order_from_reordered_list, transpose_list_of_lists
  from ..utils.oper_utils import random_sample_from_euclidean_domain, random_sample_from_discrete_euclidean_domain, random_sample_from_integral_domain, random_sample_from_prod_discrete_domain
label_desc: Use image node_id 20 for calling a global function with example usage: get_processed_func_from_raw_func_via_config(raw_func, config) and returns: get_processed_func_from_raw_func_for_cp_domain_fidelity, get_processed_func_from_raw_func_for_cp_domain