def METHOD_NAME(cls):
    all_slots = set()
    for klass in cls.mro():
        if not hasattr(klass, "__slots__"):
            continue
        slots = {klass.__slots__} if isinstance(klass.__slots__, str) else set(klass.__slots__)
        all_slots.update(slots)
    return tuple(all_slots)