def METHOD_NAME(dict1, dict2):
    merged_dict = dict1.copy()
    for key, value in dict2.items():
        if key in merged_dict and isinstance(merged_dict[key], dict) and isinstance(value, dict):
            merged_dict[key] = METHOD_NAME(merged_dict[key], value)
        else:
            merged_dict[key] = value
    return merged_dict