code: def test_von_mises_gof(loc, concentration):
      d = VonMises(loc, concentration)
      samples = d.sample(torch.Size([100000]))
      probs = d.log_prob(samples).exp()
      gof = auto_goodness_of_fit(samples, probs, dim=1)
      assert gof > TEST_FAILURE_RATE
  
file_path: pyro/tests/distributions/test_von_mises.py
imports: import math
  import os
  import pytest
  import torch
  from torch import optim
  from pyro.distributions import VonMises, VonMises3D
  from pyro.distributions.testing.gof import auto_goodness_of_fit
  from tests.common import TEST_FAILURE_RATE, skipif_param, xfail_if_not_implemented
label_desc: Use image node_id 6 for calling a global function with example usage: test_von_mises_gof(loc, concentration) without return types