nodes: 0, module; 1, function_definition; 2, function_name:argsort; 3, parameters; 4, block; 5, identifier:self; 6, list_splat_pattern; 7, dictionary_splat_pattern; 8, expression_statement; 9, expression_statement; 10, if_statement; 11, return_statement; 12, identifier:args; 13, identifier:kwargs; 14, comment:"""
          Return the integer indices that would sort the index.
  
          Parameters
          ----------
          *args
              Passed to `numpy.ndarray.argsort`.
          **kwargs
              Passed to `numpy.ndarray.argsort`.
  
          Returns
          -------
          numpy.ndarray
              Integer indices that would sort the index if used as
              an indexer.
  
          See Also
          --------
          numpy.argsort : Similar method for NumPy arrays.
          Index.sort_values : Return sorted copy of Index.
  
          Examples
          --------
          >>> idx = pd.Index(['b', 'a', 'd', 'c'])
          >>> idx
          Index(['b', 'a', 'd', 'c'], dtype='object')
  
          >>> order = idx.argsort()
          >>> order
          array([1, 0, 3, 2])
  
          >>> idx[order]
          Index(['a', 'b', 'c', 'd'], dtype='object')
          """; 15, assignment; 16, comparison_operator:result is None; 17, block; 18, call; 19, identifier:result; 20, attribute; 21, identifier:result; 22, None; 23, expression_statement; 24, attribute; 25, argument_list; 26, identifier:self; 27, identifier:asi8; 28, assignment; 29, identifier:result; 30, identifier:argsort; 31, list_splat; 32, dictionary_splat; 33, identifier:result; 34, call; 35, identifier:args; 36, identifier:kwargs; 37, attribute; 38, argument_list; 39, identifier:np; 40, identifier:array; 41, identifier:self
code: def argsort(self, *args, **kwargs):
          """
          Return the integer indices that would sort the index.
  
          Parameters
          ----------
          *args
              Passed to `numpy.ndarray.argsort`.
          **kwargs
              Passed to `numpy.ndarray.argsort`.
  
          Returns
          -------
          numpy.ndarray
              Integer indices that would sort the index if used as
              an indexer.
  
          See Also
          --------
          numpy.argsort : Similar method for NumPy arrays.
          Index.sort_values : Return sorted copy of Index.
  
          Examples
          --------
          >>> idx = pd.Index(['b', 'a', 'd', 'c'])
          >>> idx
          Index(['b', 'a', 'd', 'c'], dtype='object')
  
          >>> order = idx.argsort()
          >>> order
          array([1, 0, 3, 2])
  
          >>> idx[order]
          Index(['a', 'b', 'c', 'd'], dtype='object')
          """
          result = self.asi8
          if result is None:
              result = np.array(self)
          return result.argsort(*args, **kwargs)