def inject_use_sudo(func):
    @wraps(func)
    def inject_wrapper(*args, **kwargs):
        func_args = func.func_code.co_varnames[:func.func_code.co_argcount]

        # Fabric
        if "use_sudo" not in kwargs and "use_sudo" in func_args:
            kwargs["use_sudo"] = env.sudo_forced

        # Cuisine
        if kwargs not in "sudo" and "sudo" in func_args:
            kwargs["sudo"] = env.sudo_forced

        return func(*args, **kwargs)
    return inject_wrapper
dataset/ETHPy150Open michaelcontento/revolver/revolver/decorator.py/inject_use_sudo/swapped operands of `not in`