code: def test_generate_data(backend):
      def model():
          loc = pyro.param("loc", torch.tensor(2.0))
          scale = pyro.param("scale", torch.tensor(1.0))
          x = pyro.sample("x", dist.Normal(loc, scale))
          return x
  
      with pyro_backend(backend):
          data = model()
          data = data.data
          assert data.shape == ()
  
imports: import warnings
  import pytest
  import funsor
  from funsor.testing import xfail_param
  from funsor.util import get_backend
label_desc: Use image node_id 6 for calling a global function with example usage: test_generate_data(backend) and returns: x