code: def _merge_key_recursive(target_dict, source_dict, key):
      if key not in target_dict:
          target_dict[key] = source_dict[key]
      elif not isinstance(target_dict[key], dict) or not isinstance(
          source_dict[key], dict
      ):
          target_dict[key] = source_dict[key]
      else:
          for k in list(source_dict[key].keys()):
              _merge_key_recursive(
                  target_dict[key], source_dict[key], k
              )
  
file_path: mindsdb/mindsdb/utilities/config.py
imports: import os
  import json
  from copy import deepcopy
  from pathlib import Path
  from mindsdb.utilities.fs import create_directory, get_or_create_data_dir
label_desc: Use image node_id 1 for calling a global function with example usage: _merge_key_recursive(target_dict, source_dict, key) without return types