def METHOD_NAME(par):
    """Dot-test and inverse for Patch2D operator"""
    Op = MatrixMult(np.ones((par["nwiny"] * par["nwint"], par["ny"] * par["nt"])))
    nwins, dims, mwin_inends, dwin_inends = patch2d_design(
        (par["npy"], par["npt"]),
        (par["nwiny"], par["nwint"]),
        (par["novery"], par["novert"]),
        (par["ny"], par["nt"]),
    )
    Pop = Patch2D(
        Op,
        dims=dims,  # (par["ny"] * par["winsy"], par["nt"] * par["winst"]),
        dimsd=(par["npy"], par["npt"]),
        nwin=(par["nwiny"], par["nwint"]),
        nover=(par["novery"], par["novert"]),
        nop=(par["ny"], par["nt"]),
        tapertype=par["tapertype"],
    )
    assert dottest(
        Pop,
        par["npy"] * par["npt"],
        par["ny"] * par["nt"] * nwins[0] * nwins[1],
    )
    x = np.ones((par["ny"] * nwins[0], par["nt"] * nwins[1]))
    y = Pop * x.ravel()
    xinv = Pop / y
    assert_array_almost_equal(x.ravel(), xinv)