def _hasattrs(self, expr, attrs):
        for attr in attrs:
            if not hasattr(expr, attr):
                return False

        return True
Check if ``expr`` has any of ``attrs``.
dataset/ETHPy150Open sympy/sympy/sympy/simplify/epathtools.py/EPath._hasattrs