code: def test_issue_5122():
      p = 0
      n = np.random.randint(100, size=10)
  
      x = 0
      ppf = binom.ppf(x, n, p)
      assert_equal(ppf, -1)
  
      x = np.linspace(0.01, 0.99, 10)
      ppf = binom.ppf(x, n, p)
      assert_equal(ppf, 0)
  
      x = 1
      ppf = binom.ppf(x, n, p)
      assert_equal(ppf, n)
  
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 13 for calling a global function with example usage: test_issue_5122() without return types