def multiargs(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
        if len(args) == 0:
            return func()
        arg = args[0]
        args = args[1:]
        if (tuple, list) in type(arg):
            return map(lambda _: func(_, *args, **kwargs), arg)
        else:
            return func(arg, *args, **kwargs)
    return wrapper
dataset/ETHPy150Open michaelcontento/revolver/revolver/decorator.py/multiargs/swapped operands of `in`