code: def logpdf(x: ArrayLike, alpha: ArrayLike) -> Array:
      return _logpdf(*promote_dtypes_inexact(x, alpha))
  
file_path: jax/jax/_src/scipy/stats/dirichlet.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 promote_dtypes_inexact, _wraps
  from jax.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: logpdf(x, alpha) and returns: _logpdf