code: def test_param_no_grad(nn_module):
      class net(torch.nn.Module):
          def __init__(self):
              super().__init__()
              self.x = Parameter(torch.zeros(1))
              self.y = Parameter(torch.zeros(1), requires_grad=False)
  
          def forward(self, s):
              pass
  
      with pytest.warns(UserWarning):
          pyro.module("net", net())
      assert "net$$$x" in pyro.get_param_store().keys()
      assert "net$$$y" not in pyro.get_param_store().keys()
  
imports: import pytest
  import torch
  import torch.nn
  from torch.nn import Parameter
  import pyro
  import pyro.distributions
  import pyro.optim
label_desc: Use image node_id 2 for calling a global function with example usage: test_param_no_grad(nn_module) without return types