code: def ppf(q: ArrayLike, p: ArrayLike) -> Array:
      q, p = promote_args_inexact("bernoulli.ppf", q, p)
      zero, one = _lax_const(q, 0), _lax_const(q, 1)
      return jnp.where(
          jnp.isnan(q)
          | jnp.isnan(p)
          | (p < zero)
          | (p > one)
          | (q < zero)
          | (q > one),
          jnp.nan,
          jnp.where(lax.le(q, one - p), zero, one),
      )
  
file_path: jax/jax/_src/scipy/stats/bernoulli.py
imports: import scipy.stats
  from jax import lax
  import jax.numpy
  from jax._src.lax.lax import _const
  from jax._src.numpy.util import _wraps, promote_args_inexact
  from jax._src.typing import Array, ArrayLike
  from jax.scipy.special import xlogy, xlog1py
label_desc: Use image node_id 4 for calling a global function with example usage: ppf(q, p) and returns: jnp