def METHOD_NAME():
    reshape_dimshuffle = out2in(local_dimshuffle_alloc)
    x = vector("x")
    out = at.alloc(x, 3, 2).dimshuffle("x", "x", 0, 1)
    g = FunctionGraph([x], [out])
    reshape_dimshuffle(g)
    l = PerformLinker()
    l.accept(g)
    f = make_function(l)
    assert f([3, 4]).ndim == 4
    topo = g.toposort()
    assert not all(isinstance(x, DimShuffle) for x in topo)