def METHOD_NAME(left: Dict[str, Any], right: Dict[str, Any]) -> Dict[str, Any]:
    result = left.copy()
    for key, value in right.items():
        if key in left and isinstance(left[key], dict) and isinstance(value, dict):
            result[key] = METHOD_NAME(left[key], value)
        else:
            result[key] = value
    return result