def get_tablets(display=None):
    # Each cursor appears as a separate xinput device; find devices that look
    # like Wacom tablet cursors and amalgamate them into a single tablet. 
    cursors = []
    devices = get_devices(display)
    for device in devices:
        if ('stylus', 'cursor', 'eraser') in device.name and \
           len(device.axes) >= 3:
            cursors.append(XInputTabletCursor(device))

    if cursors:
        return [XInputTablet(cursors)]
    return []
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/x11_xinput_tablet.py/get_tablets/swapped operands of `in`