def METHOD_NAME(self, menu_button):
    for attr in menu_button.__slots__:
        assert getattr(menu_button, attr, "err") != "err", f"got extra slot '{attr}'"
    assert len(mro_slots(menu_button)) == len(set(mro_slots(menu_button))), "duplicate slot"