code: def test_init_with_reparam_inside_plate():
      def model():
          with pyro.plate("N", 10):
              with poutine.reparam(
                  config={"x": LocScaleReparam(centered=0.0)}
              ):
                  return pyro.sample("x", dist.Normal(0, 1))
  
      with InitMessenger(init_to_uniform()):
          actual = model()
          assert actual.shape == (10,)
  
file_path: pyro/tests/infer/reparam/test_loc_scale.py
imports: import pytest
  import torch
  from torch.autograd import grad
  import pyro
  import pyro.distributions
  from pyro import poutine
  from pyro.distributions.util import is_identically_one
  from pyro.infer.autoguide.initialization import InitMessenger, init_to_uniform
  from pyro.infer.reparam import LocScaleReparam
  from tests.common import assert_close
  from .util import check_init_reparam
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_with_reparam_inside_plate() and returns: pyro