code: def merge_compile_params(compile_params, dummified_params):
      """Update `compile_params` to reflect those values that were given hyperparameter space choices,
      as specified by `dummified_params`
  
      Parameters
      ----------
      compile_params: Dict
          All the compile parameters provided to a dummy model's `compile` method, or their default
          values if they were not explicitly given. If the original value of one of the keys in
          `compile_params` was a hyperparameter space choice, its current value will be the dummy
          chosen for it, and this change will be reflected by the contents of `dummified_params`
      dummified_params: Dict
          A mapping of keys in `compile_params` (possibly nested keys) to a tuple pair of
          (<original hyperparameter space choice>, <tuple path to key>)
  
      Returns
      -------
      merged_params: Dict
          A dictionary that mirrors `compile_params`, except where an element of `dummified_params`
          has the same path/key, in which case the hyperparameter space choice value in
          `dummified_params` is used"""
      # FLAG: Deal with capitalization conflicts when comparing similar experiments: `optimizer`="Adam" vs "adam"
      _dummy_params = subdict(
          dummified_params.copy(),
          key=lambda _: _[1:] if _[0] == "params" else _,
      )
  
      def _visit(path, key, value):
          """If (`path` + `key`) in `_dummy_params`, return its value instead. Else, default"""
          location = path + (key,)
          if len(_dummy_params) and location in _dummy_params:
              return (key, _dummy_params.pop(location))
          return (key, value)
  
      merged_params = remap(compile_params, visit=_visit)
      return merged_params
  
imports: from hyperparameter_hunter.settings import G, TEMP_MODULES_DOT_PATH, TEMP_MODULES_DIR_PATH
  from hyperparameter_hunter.compat.keras_helper import parameterize_compiled_keras_model
  from hyperparameter_hunter.space.dimensions import Real, Integer, Categorical
  from hyperparameter_hunter.utils.boltons_utils import remap, default_enter
  from hyperparameter_hunter.utils.general_utils import deep_restricted_update, subdict
  from hyperparameter_hunter.utils.parsing_utils import stringify_model_builder, write_python, build_temp_model_file
  from collections import OrderedDict
  from copy import deepcopy
  from datetime import datetime
  from importlib.util import spec_from_file_location, module_from_spec
  import os
  import re
  import sys
  from types import FunctionType, MethodType
label_desc: Use image node_id 3 for calling a global function with example usage: merge_compile_params(compile_params, dummified_params) and returns: merged_params, key,  value, key,  _dummy_params