code: def test_von_mises_3d_gof(scale):
      concentration = torch.randn(3)
      concentration = concentration * (scale / concentration.norm(2))
      d = VonMises3D(concentration, validate_args=True)
  
      with xfail_if_not_implemented():
          samples = d.sample(torch.Size([2000]))
      probs = d.log_prob(samples).exp()
  
      gof = auto_goodness_of_fit(samples, probs, dim=2)
      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 8 for calling a global function with example usage: test_von_mises_3d_gof(scale) without return types