def _is_Expr(e):
    if not isinstance(e, Expr):
        return False
    return all(_is_Expr(i) for i in e.args)
_eapply helper to tell whether ``e`` and all its args
dataset/ETHPy150Open sympy/sympy/sympy/simplify/trigsimp.py/_is_Expr