code: def argsort(x):
      xp = cuda.get_array_module(x)
      i = np.argsort(cuda.to_cpu(x))
      if xp is np:
          return i
      else:
          return cuda.to_gpu(i)
  
file_path: chainercv/chainercv/links/model/fpn/misc.py
imports: from __future__ import division
  import numpy
  from chainer.backends import cuda
  import chainer.functions
  from chainercv import transforms
label_desc: Use image node_id 2 for calling a global function with example usage: argsort(x) and returns: i, cuda