code: def quantile(
      a,
      q,
      axis=None,
      out=None,
      overwrite_input=False,
      method="linear",
      keepdims=False,
      *,
      interpolation=None,
  ):
      """Computes the q-th quantile of the data along the specified axis.
  
      Args:
          a (cupy.ndarray): Array for which to compute quantiles.
          q (float, tuple of floats or cupy.ndarray): Quantiles to compute
              in the range between 0 and 1 inclusive.
          axis (int or tuple of ints): Along which axis or axes to compute the
              quantiles. The flattened array is used by default.
          out (cupy.ndarray): Output array.
          overwrite_input (bool): If True, then allow the input array `a`
              to be modified by the intermediate calculations, to save
              memory. In this case, the contents of the input `a` after this
              function completes is undefined.
          method (str): Interpolation method when a quantile lies between
              two data points. ``linear`` interpolation is used by default.
              Supported interpolations are``lower``, ``higher``, ``midpoint``,
              ``nearest`` and ``linear``.
          keepdims (bool): If ``True``, the axis is remained as an axis of
              size one.
          interpolation (str): Deprecated name for the method keyword argument.
  
      Returns:
          cupy.ndarray: The quantiles of ``a``, along the axis if specified.
  
      .. seealso:: :func:`numpy.quantile`
      """
      if interpolation is not None:
          method = _check_interpolation_as_method(
              method, interpolation, "quantile"
          )
      if not isinstance(q, cupy.ndarray):
          q = cupy.asarray(q, dtype="d")
      if not _quantile_is_valid(q):  # synchronize
          raise ValueError("Quantiles must be in the range [0, 1]")
      return _quantile_unchecked(
          a,
          q,
          axis=axis,
          out=out,
          overwrite_input=overwrite_input,
          method=method,
          keepdims=keepdims,
      )
  
file_path: cupy/cupy/_statistics/order.py
imports: import warnings
  import cupy
  from cupy import _core
  from cupy._core import _routines_statistics
  from cupy._core import _fusion_thread_local
  from cupy._logic import content
label_desc: Use image node_id 9 for calling a global function with example usage: quantile(a, q, axis, out, overwrite_input, method, keepdims) and returns: _quantile_unchecked