code: def test_trace_handler(model, backend):
      with pyro_backend(backend), handlers.seed(
          rng_seed=2
      ), xfail_if_not_implemented():
          f = MODELS[model]()
          model, model_args, model_kwargs = (
              f["model"],
              f.get("model_args", ()),
              f.get("model_kwargs", {}),
          )
          # should be implemented
          handlers.trace(model).get_trace(*model_args, **model_kwargs)
  
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 6 for calling a global function with example usage: test_trace_handler(model, backend) without return types