code: def pmf(
      k: ArrayLike, n: ArrayLike, p: ArrayLike, loc: ArrayLike = 0
  ) -> Array:
      """JAX implementation of scipy.stats.nbinom.pmf."""
      return lax.exp(logpmf(k, n, p, loc))
  
file_path: jax/jax/_src/scipy/stats/nbinom.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.scipy.special import gammaln, xlogy
  from jax._src.typing import Array, ArrayLike
label_desc: Use image node_id 2 for calling a global function with example usage: pmf(k, n, p, loc) and returns: lax