def _dotrig(a, b):
    return a.func == b.func and (
        a.has(TrigonometricFunction) and b.has(TrigonometricFunction) or
        a.has(HyperbolicFunction) and b.has(HyperbolicFunction))
Helper to tell whether ``a`` and ``b`` have the same sorts
dataset/ETHPy150Open sympy/sympy/sympy/simplify/trigsimp.py/_dotrig