<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def quantile_gaussianize(x):
 """Normalize a sequence of values via rank and Normal c.d.f. Args: x (array_like):
 sequence of values. Returns: Gaussian-normalized values. Example: .. doctest:: [-0.67448975 0. 0.67448975] """

    from scipy.stats import norm, rankdata

    x = asarray(x, float).copy()
    ok = isfinite(x)
    x[ok] *= -1
    y = empty_like(x)
    y[ok] = rankdata(x[ok])
    y[ok] = norm.isf(y[ok] / (sum(ok) + 1))
    y[~ok] = x[~ok]
    return y