def METHOD_NAME(model, subsample_size):
    pyro.set_rng_seed(0)
    traced_model = poutine.trace(model)
    original = traced_model(subsample_size)
    replayed = poutine.replay(model, trace=traced_model.trace)(subsample_size)
    assert replayed == original
    if subsample_size < 20:
        different = traced_model(subsample_size)
        assert different != original