code: def test_outer_inner(Elbo):
      data = torch.randn(2, 3)
  
      def model():
          with pyro.plate("outer", 2, dim=-2):
              x = pyro.sample("x", dist.Normal(0, 1))
              with pyro.plate("inner", 3, dim=-1):
                  pyro.sample("y", dist.Normal(x, 1), obs=data)
  
      def guide():
          with pyro.plate("outer", 2, dim=-2):
              pyro.sample("x", dist.Normal(1, 1))
  
      check_elbo(model, guide, Elbo)
  
file_path: pyro/tests/infer/test_multi_sample_elbos.py
imports: import pytest
  import torch
  import pyro
  import pyro.distributions
  from pyro.infer import RenyiELBO
  from tests.common import assert_close
label_desc: Use image node_id 3 for calling a global function with example usage: test_outer_inner(Elbo) without return types