code: def logpdf(
      x: ArrayLike,
      b: ArrayLike,
      loc: ArrayLike = 0,
      scale: ArrayLike = 1,
  ) -> Array:
      x, b, loc, scale = promote_args_inexact(
          "pareto.logpdf", x, b, loc, scale
      )
      one = _lax_const(x, 1)
      scaled_x = lax.div(lax.sub(x, loc), scale)
      normalize_term = lax.log(lax.div(scale, b))
      log_probs = lax.neg(
          lax.add(
              normalize_term,
              lax.mul(lax.add(b, one), lax.log(scaled_x)),
          )
      )
      return jnp.where(
          lax.lt(x, lax.add(loc, scale)), -jnp.inf, log_probs
      )
  
file_path: jax/jax/_src/scipy/stats/pareto.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, b, loc, scale) and returns: jnp