def validate_proxy_type(typename):
    if PROXY_TYPES not in typename.upper():
        alllowed = ", ".join(PROXY_TYPES.keys())
        raise ValueError(
            "Invalid proxy type %r. Allowed values: %s" % (typename, alllowed)
        )
dataset/ETHPy150Open scrapinghub/splash/splash/qtutils.py/validate_proxy_type/swapped operands of `not in`