def METHOD_NAME(
    changes: Sequence[LayoutUpdateMessage],
    expected_model: Any,
) -> None:
    model_from_changes = {}
    for update in changes:
        if update["path"]:
            model_from_changes = set_pointer(
                model_from_changes, update["path"], update["model"]
            )
        else:
            model_from_changes.update(update["model"])
    assert model_from_changes == expected_model