code: def test_wichmann_hill1982():
      n_generated = [rng.WichmannHill1982() for i in range(10000)]
      chisq, pvalue = chisquare(n_generated)
      # P-values equal 1 show evidence of the null hypothesis which indicates
      # that it is uniformly distributed. This is what we want to check here
      npt.assert_almost_equal(pvalue, 1.0)
      npt.assert_raises(ValueError, rng.WichmannHill1982, iz=0)
  
imports: from scipy.stats import chisquare
  from dipy.core import rng
  import numpy.testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_wichmann_hill1982() without return types