code: def test_structure_7(backend):
      I, J = 2, 3
  
      def model():
          i_plate = pyro.plate("i", I, dim=-1)
          j_plate = pyro.plate("j", J, dim=-2)
          a = pyro.sample("a", dist.Normal(0, 1))
          with i_plate:
              b = pyro.sample("b", dist.Normal(a, 1))
          with j_plate:
              c = pyro.sample("c", dist.Normal(b.mean(), 1))
          d = pyro.sample("d", dist.Normal(c.mean(), 1))
          pyro.sample("e", dist.Normal(1, 1), obs=d)
  
      # size = 1 + 2 + 3 + 1 = 7
      structure = [
          "? ? ? . . . .",
          "? ? ? ? ? ? .",
          "? ? ? ? ? ? .",
          ". ? ? ? ? ? ?",
          ". ? ? ? ? ? ?",
          ". ? ? ? ? ? ?",
          ". . . ? ? ? ?",
      ]
      if backend == "funsor":
          check_backends_agree(model)
      else:
          check_structure(model, structure)
  
imports: from collections import OrderedDict, namedtuple
  import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.poutine
  from pyro.infer import SVI, JitTrace_ELBO, Predictive, Trace_ELBO
  from pyro.infer.autoguide import AutoGaussian, AutoGuideList
  from pyro.infer.autoguide.gaussian import AutoGaussianDense, AutoGaussianFunsor, _break_plates
  from pyro.infer.reparam import LocScaleReparam
  from pyro.optim import ClippedAdam
  from tests.common import assert_close, assert_equal, xfail_if_not_implemented
label_desc: Use image node_id 12 for calling a global function with example usage: test_structure_7(backend) without return types