def epsilon(i, j, k):
    if (i, j, k) in [(1, 2, 3), (2, 3, 1), (3, 1, 2)]:
        return 1
    elif (i, j, k) in [(1, 3, 2), (3, 2, 1), (2, 1, 3)]:
        return -1
    else:
        return 0
Return 1 if i,j,k is equal to (1,2,3), (2,3,1), or (3,1,2);
dataset/ETHPy150Open sympy/sympy/sympy/physics/paulialgebra.py/epsilon