def METHOD_NAME(par):
    """Dot-test and inversion for Shift operator on 1d data"""
    np.random.seed(0)
    shift = 5.5
    x = (
        gaussian(np.arange(par["nt"] // 2 + 1), 2.0)[0]
        + par["imag"] * gaussian(np.arange(par["nt"] // 2 + 1), 2.0)[0]
    )
    Sop = Shift(
        par["nt"], shift, real=True if par["imag"] == 0 else False, dtype=par["dtype"]
    )
    assert dottest(Sop, par["nt"], par["nt"], complexflag=0 if par["imag"] == 0 else 3)
    xlsqr = lsqr(Sop, Sop * x, damp=1e-20, iter_lim=200, atol=1e-8, btol=1e-8, show=0)[0]
    assert_array_almost_equal(x, xlsqr, decimal=1)