code: def argsort(a, axis=-1, kind=None):
      """Returns the indices that would sort an array with a stable sorting.
  
      Args:
          a (cupy.ndarray): Array to sort.
          axis (int or None): Axis along which to sort. Default is -1, which
              means sort along the last axis. If None is supplied, the array is
              flattened before sorting.
          kind: Default is `None`, which is equivalent to 'stable'. Unlike in
              NumPy any other options are not accepted here.
  
      Returns:
          cupy.ndarray: Array of indices that sort ``a``.
  
      .. note::
          For its implementation reason, ``cupy.argsort`` does not support
          ``kind`` and ``order`` parameters.
  
      .. seealso:: :func:`numpy.argsort`
  
      """
      if kind is not None and kind != "stable":
          raise ValueError("kind can only be None or 'stable'")
      return a.argsort(axis=axis)
  
file_path: cupy/cupy/_sorting/sort.py
imports: import warnings
  import cupy
  import numpy
  from cupy.cuda import thrust
label_desc: Use image node_id 3 for calling a global function with example usage: argsort(a, axis, kind) and returns: a