def METHOD_NAME(random):
    arr = random.random((10, 10, 1000))
    da = xr.DataArray(arr, dims=("x", "y", "time"))
    ranks = u.rank(da, dim="time", pct=False)
    exp = arr.argsort().argsort() + 1
    np.testing.assert_array_equal(ranks.values, exp)