code: def test_no_param():
      pyro.clear_param_store()
  
      @scope
      def model():
          a = pyro.param("a", torch.tensor(0.5))
          return pyro.sample("b", dist.Bernoulli(a))
  
      expected_names = ["a", "model/b"]
      tr = poutine.trace(model).get_trace()
      actual_names = [
          name
          for name, node in tr.nodes.items()
          if node["type"] in ("param", "sample")
      ]
  
      assert expected_names == actual_names
  
file_path: pyro/tests/contrib/autoname/test_scoping.py
imports: import logging
  import torch
  import pyro
  import pyro.distributions.torch
  import pyro.poutine
  from pyro.contrib.autoname import name_count, scope
label_desc: Use image node_id 8 for calling a global function with example usage: test_no_param() and returns: pyro