code: def logpdf(x: ArrayLike, kappa: ArrayLike) -> Array:
      x, kappa = promote_args_inexact("vonmises.logpdf", x, kappa)
      zero = _lax_const(kappa, 0)
      return jnp.where(
          lax.gt(kappa, zero),
          kappa * (jnp.cos(x) - 1)
          - jnp.log(2 * jnp.pi * lax.bessel_i0e(kappa)),
          jnp.nan,
      )
  
file_path: jax/jax/_src/scipy/stats/vonmises.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
label_desc: Use image node_id 1 for calling a global function with example usage: logpdf(x, kappa) and returns: jnp