code: def test_idempotent(poutine_name, model):
      p = model.bind_poutine(poutine_name)
      expected_trace = get_trace(p(model))
      actual_trace = get_trace(p(p(model)))
      assert_equal(actual_trace, expected_trace, prec=0)
  
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 7 for calling a global function with example usage: test_idempotent(poutine_name, model) without return types