code: def _get_cpfc_args_from_config(config):
      """Return arguments as a dict."""
      # pylint: disable=maybe-no-member
      if isinstance(config, str):
          from dragonfly.exd.cp_domain_utils import load_config_file
  
          config = load_config_file(config)
      ret = {
          "domain": config.domain,
          "domain_orderings": config.domain_orderings,
          "fidel_space": config.fidel_space,
          "fidel_to_opt": config.fidel_to_opt,
          "fidel_space_orderings": config.fidel_space_orderings,
      }
      return ret
  
file_path: dragonfly/examples/nas/nn_function_caller.py
imports: from copy import deepcopy
  import numpy
  from time import sleep
  from dragonfly.exd.experiment_caller import CPFunctionCaller
  from dragonfly.exd.exd_core import EVAL_ERROR_CODE
  from dragonfly.utils.reporters import get_reporter
label_desc: Use image node_id 1 for calling a global function with example usage: _get_cpfc_args_from_config(config) and returns: ret