code: def setUp(self):
      pyro.clear_param_store()
  
      def model():
          loc = pyro.sample(
              "loc", Normal(torch.zeros(1), torch.ones(1))
          )
          xd = Normal(loc, torch.ones(1))
          pyro.sample("xs", xd, obs=self.data)
          return loc
  
      def guide():
          return pyro.sample(
              "loc", Normal(torch.zeros(1), torch.ones(1))
          )
  
      # data
      self.data = torch.zeros(50, 1)
      self.loc_mean = torch.zeros(1)
      self.loc_stddev = torch.sqrt(torch.ones(1) / 51.0)
  
      # model and guide
      self.model = model
      self.guide = guide
  
file_path: pyro/tests/infer/test_sampling.py
imports: from unittest import TestCase
  import pytest
  import torch
  import pyro
  import pyro.infer
  from pyro.distributions import Bernoulli, Normal
  from pyro.infer import EmpiricalMarginal
  from tests.common import assert_equal
label_desc: Use image node_id 1 for calling the NormalNormalSamplingTestCase obj's underlying member method code with example usage: obj.setUp() and returns: loc, pyro