code: def quantile(
      a: JaxArray,
      q: Union[float, JaxArray],
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      interpolation: str = "linear",
      keepdims: bool = False,
      out: Optional[JaxArray] = None,
  ) -> JaxArray:
      axis = tuple(axis) if isinstance(axis, list) else axis
      interpolation = (
          "nearest" if interpolation == "nearest_jax" else interpolation
      )
      return jnp.quantile(
          a,
          q,
          axis=axis,
          method=interpolation,
          keepdims=keepdims,
          out=out,
      )
  
imports: import jax.numpy
  from typing import Optional, Union, Tuple, Sequence
  from ivy.functional.backends.jax import JaxArray
  import jax.lax
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
  from ..statistical import _infer_dtype
label_desc: Use image node_id 6 for calling a global function with example usage: quantile() and returns: jnp