code: def test_issue_7406():
      np.random.seed(0)
      assert_equal(binom.ppf(np.random.rand(10), 0, 0.5), 0)
  
      # Also check that endpoints (q=0, q=1) are correct
      assert_equal(binom.ppf(0, 0, 0.5), -1)
      assert_equal(binom.ppf(1, 0, 0.5), 0)
  
imports: import pytest
  from scipy.stats import betabinom, hypergeom, nhypergeom, bernoulli, boltzmann, skellam, zipf, zipfian, binom, nbinom, nchypergeom_fisher, nchypergeom_wallenius, randint
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose
  from scipy.special import binom
  import pytest
  from scipy.optimize import root_scalar
  from scipy.integrate import quad
label_desc: Use image node_id 12 for calling a global function with example usage: test_issue_7406() without return types