@classmethod
    def _new_args_filter(cls, arg_sequence, call_cls=None):
        ncls = call_cls or cls
        for arg in arg_sequence:
            if arg == ncls.zero:
                raise ShortCircuit(arg)
            elif arg == ncls.identity:
                continue
            elif arg.func == ncls:
                for x in arg.args:
                    yield x
            else:
                yield arg
Generator filtering args
dataset/ETHPy150Open sympy/sympy/sympy/core/operations.py/LatticeOp._new_args_filter