code: def logpdf(x: ArrayLike, p: ArrayLike) -> Array:
      x, p = promote_args_inexact("gennorm.logpdf", x, p)
      return lax.log(0.5 * p) - lax.lgamma(1 / p) - lax.abs(x) ** p
  
imports: import scipy.stats
  from jax import lax
  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, p) and returns: unknown