def METHOD_NAME():
    def model1():
        with scope(prefix="a"):
            with scope(prefix="b"):
                pyro.sample("x", dist.Bernoulli(0.5))
    tr1 = poutine.trace(name_count(model1)).get_trace()
    assert "a/b/x" in tr1.nodes
    tr2 = poutine.trace(name_count(scope(prefix="model1")(model1))).get_trace()
    assert "model1/a/b/x" in tr2.nodes