def METHOD_NAME(dict0: Dict[str, Any], dict1: Dict[str, Any]) -> Dict[str, Any]:
    if not isinstance(dict1, dict) or not isinstance(dict0, dict):
        return dict1
    for k, v in dict1.items():
        if k in dict0:
            dict0[k] = METHOD_NAME(dict0[k], v)
        else:
            dict0[k] = v
    return dict0