code: def test_VonMises_range(self):
      # Make sure generated random variables are in [-pi, pi].
      # Regression test for ticket #986.
      for mu in np.linspace(-7.0, 7.0, 5):
          r = random.mtrand.vonmises(mu, 1, 50)
          assert_(np.all(r > -np.pi) and np.all(r <= np.pi))
  
file_path: numpy/numpy/random/tests/test_regression.py
imports: import sys
  from numpy.testing import assert_, assert_array_equal, assert_raises
  from numpy import random
  import numpy
label_desc: Use image node_id 1 for calling the TestRegression obj's underlying member method code with example usage: obj.test_VonMises_range() without return types