code: def test_model_guide_mismatch(
      behavior, model_size, guide_size, model
  ):
      model = poutine.trace(model)
      expected_ind = model(guide_size)
      if behavior == "ok":
          actual_ind = poutine.replay(model, trace=model.trace)(
              model_size
          )
          assert actual_ind == expected_ind
      else:
          with pytest.raises(ValueError):
              poutine.replay(model, trace=model.trace)(model_size)
  
file_path: pyro/tests/poutine/test_mapdata.py
imports: import logging
  import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.poutine
  from tests.common import requires_cuda
label_desc: Use image node_id 13 for calling a global function with example usage: test_model_guide_mismatch(behavior, model_size, guide_size, model) without return types