def METHOD_NAME(x, axes=None):
    """How ifftshift was implemented in v1.14"""
    tmp = asarray(x)
    ndim = tmp.ndim
    if axes is None:
        axes = list(range(ndim))
    elif isinstance(axes, int):
        axes = (axes,)
    y = tmp
    for k in axes:
        n = tmp.shape[k]
        p2 = n - (n + 1) // 2
        mylist = concatenate((arange(p2, n), arange(p2)))
        y = take(y, mylist, k)
    return y