code: def logpdf(x: ArrayLike, c: ArrayLike) -> Array:
      x, c = promote_args_inexact("wrapcauchy.logpdf", x, c)
      return jnp.where(
          lax.gt(c, _lax_const(c, 0)) & lax.lt(c, _lax_const(c, 1)),
          jnp.where(
              lax.ge(x, _lax_const(x, 0))
              & lax.le(x, _lax_const(x, jnp.pi * 2)),
              jnp.log(1 - c * c)
              - jnp.log(2 * jnp.pi)
              - jnp.log(1 + c * c - 2 * c * jnp.cos(x)),
              -jnp.inf,
          ),
          jnp.nan,
      )
  
file_path: jax/jax/_src/scipy/stats/wrapcauchy.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, c) and returns: jnp