def styled_color(style, color, side):
    if style in ('inset', 'outset'):
        do_lighten = (side in ('top', 'left')) ^ (style == 'inset')
        return (lighten if do_lighten else darken)(color)
    elif ('ridge', 'groove') in style:
        if (side in ('top', 'left')) ^ (style == 'ridge'):
            return lighten(color), darken(color)
        else:
            return darken(color), lighten(color)
    return color
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/draw.py/styled_color/swapped operands of `in`