code: def test_mcmc_interface(model, backend):
      with pyro_backend(backend), handlers.seed(rng_seed=20):
          f = MODELS[model]()
          model, args, kwargs = (
              f["model"],
              f.get("model_args", ()),
              f.get("model_kwargs", {}),
          )
          nuts_kernel = infer.NUTS(model=model)
          mcmc = infer.MCMC(
              nuts_kernel, num_samples=10, warmup_steps=10
          )
          mcmc.run(*args, **kwargs)
          mcmc.summary()
  
file_path: pyro/tests/test_generic.py
imports: import pytest
  from pyroapi.testing import MODELS
  from pyro.generic import handlers, infer, ops, pyro, pyro_backend
  from tests.common import xfail_if_not_implemented
label_desc: Use image node_id 1 for calling a global function with example usage: test_mcmc_interface(model, backend) without return types