def METHOD_NAME(cls, attributes: dict[str, typing.Any]) -> None:
    # sanity check: did we forget something in `cls.SYNCED_ATTRIBUTES` that
    # we support migrating anyway?
    _missing_attrs = cls.SYNCED_ATTRIBUTES - set(attributes.keys())
    assert not _missing_attrs, f"Missing attributes: {_missing_attrs}"
    _superfluous_attrs = set(attributes.keys()) - cls.SYNCED_ATTRIBUTES
    assert not _superfluous_attrs, f"Superfluous attributes: {_superfluous_attrs}"