code: def merge_config_dicts(dic, base_dic):
      """Merge dic to base_dic and return base_dic."""
      base_dic = base_dic.copy()
      dic = dic.copy()
  
      if not dic.get(_INHERIT_KEY, True):
          dic.pop(_INHERIT_KEY)
          return dic
  
      for key, val in dic.items():
          if isinstance(val, dict) and key in base_dic:
              base_dic[key] = merge_config_dicts(val, base_dic[key])
          else:
              base_dic[key] = val
  
      return base_dic
  
imports: import six
  import codecs
  import os
  from ast import literal_eval
  from typing import Any, Dict, Optional
  import yaml
  from paddleseg.cvlibs import config_checker
  from paddleseg.utils import utils
label_desc: Use image node_id 2 for calling a global function with example usage: merge_config_dicts(dic, base_dic) and returns: base_dic, dic