code: def argsort(a, axis=-1, kind="quicksort", order=None):
      """
      Returns the indices that would sort an array.
  
      Perform an indirect sort along the given axis using the algorithm
      specified by the kind keyword.  It returns an array of indices of
      the same shape as a that index data along the given axis in sorted
      order.
  
      """
      if axis is None:
          a = a.flatten()
          axis = 0
      return ArgSortOp(kind, order)(a, axis)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import theano
  from theano.tensor.basic import mul, arange
  from theano.gradient import grad_undefined
  from theano.tensor.subtensor import set_subtensor
label_desc: Use image node_id 4 for calling a global function with example usage: argsort(a, axis, kind, order) and returns: ArgSortOp