code: def test_invalid_parameters(self):
      # p < .1
      assert_raises(ValueError, qsturng, -0.1, 5, 6)
      # p > .999
      assert_raises(ValueError, qsturng, 0.9991, 5, 6)
      # p < .9, v = 1
      assert_raises(ValueError, qsturng, 0.89, 5, 1)
      # p >= .9, v = 0
      assert_raises(ValueError, qsturng, 0.9, 5, 0)
      # r < 2
      assert_raises((ValueError, OverflowError), qsturng, 0.9, 1, 2)
  
imports: from statsmodels.compat.python import lzip, lmap
  from numpy.testing import assert_equal, assert_almost_equal, assert_array_almost_equal, assert_raises
  import numpy
  import pytest
  from statsmodels.stats.libqsturng import qsturng, psturng
label_desc: Use image node_id 3 for calling the TestQsturng obj's underlying member method code with example usage: obj.test_invalid_parameters() without return types