def root(arg, n, k=0):
    n = sympify(n)
    if k:
        return Pow(arg, S.One/n)*S.NegativeOne**(2*k/n)
    return Pow(arg, 1/n)
root(x, n, k) -> Returns the k-th n-th root of x, defaulting to the
dataset/ETHPy150Open sympy/sympy/sympy/functions/elementary/miscellaneous.py/root