code: def cdf(
      x: ArrayLike, loc: ArrayLike = 0, scale: ArrayLike = 1
  ) -> Array:
      x, loc, scale = promote_args_inexact("uniform.cdf", x, loc, scale)
      zero, one = jnp.array(0, x.dtype), jnp.array(1, x.dtype)
      conds = [
          lax.lt(x, loc),
          lax.gt(x, lax.add(loc, scale)),
          lax.ge(x, loc) & lax.le(x, lax.add(loc, scale)),
      ]
      vals = [zero, one, lax.div(lax.sub(x, loc), scale)]
  
      return jnp.select(conds, vals)
  
file_path: jax/jax/_src/scipy/stats/uniform.py
imports: import scipy.stats
  from jax import lax
  from jax import numpy
  from jax.numpy import where, inf, logical_or
  from jax._src.typing import Array, ArrayLike
  from jax._src.numpy.util import _wraps, promote_args_inexact
label_desc: Use image node_id 3 for calling a global function with example usage: cdf(x, loc, scale) and returns: jnp