def _my_principal_branch(expr, period, full_pb=False):
    from sympy import principal_branch
    res = principal_branch(expr, period)
    if not full_pb:
        res = res.replace(principal_branch, lambda x, y: x)
    return res
Bring expr nearer to its principal branch by removing superfluous
dataset/ETHPy150Open sympy/sympy/sympy/integrals/meijerint.py/_my_principal_branch