code: def register_model(**poutine_kwargs):
      """
      Decorator to register a model as an example model for testing.
      """
  
      def register_fn(fn):
          model = ExampleModel(fn, poutine_kwargs)
          EXAMPLE_MODELS.append(model)
          EXAMPLE_MODEL_IDS.append(model.fn.__name__)
          return model
  
      return register_fn
  
file_path: pyro/tests/poutine/test_properties.py
imports: import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.poutine
  from pyro.util import set_rng_seed
  from tests.common import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: register_model() and returns: register_fn, model