code: def test_get_quad_rule(sigma):
      quad_points, log_weights = get_quad_rule(32, torch.zeros(1))
      quad_points *= sigma  # transform to N(0, sigma) gaussian
      variance = torch.logsumexp(
          quad_points.pow(2.0).log() + log_weights, axis=0
      ).exp()
      assert_equal(sigma**2, variance.item())
  
file_path: pyro/tests/ops/test_special.py
imports: import pytest
  import torch
  from scipy.special import iv
  from torch import tensor
  from torch.autograd import grad
  from pyro.ops.special import get_quad_rule, log_beta, log_binomial, log_I1, safe_log
  from tests.common import assert_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_quad_rule(sigma) without return types