def fixed_arity(func_name, arity):

    def formatter(translator, expr):
        op = expr.op()
        if arity != len(op.args):
            raise com.IbisError('incorrect number of args')
        return _format_call(translator, func_name, *op.args)

    return formatter
dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py/fixed_arity/original