def METHOD_NAME(model):
    m = model
    m2 = loads(dumps(m))
    m.disable_caching()
    m2.disable_caching()
    mus = m.parameters.space(1, 2).sample_randomly(3)
    for mu in mus:
        assert np.all(almost_equal(m.solve(mu), m2.solve(mu)))