code: def get_rank(values):
      """get rank of items
  
      Parameters
      ----------
      values: Array
  
      Returns
      -------
      ranks: Array of int
          the rank of this item in the input (the largest value ranks first)
      """
      tmp = np.argsort(-values)
      ranks = np.empty_like(tmp)
      ranks[tmp] = np.arange(len(tmp))
      return ranks
  
file_path: tvm/python/tvm/autotvm/utils.py
imports: import logging
  import time
  import numpy
  import tvm.arith
  from tvm.tir import expr
  from tvm.contrib.popen_pool import PopenPoolExecutor
label_desc: Use image node_id 1 for calling a global function with example usage: get_rank(values) and returns: ranks