code: def _get_best_indices(logits, n_best_size):
      index_and_score = sorted(
          enumerate(logits), key=lambda x: x[1], reverse=True
      )
      return list(map(lambda x: x[0], index_and_score))[:n_best_size]
  
file_path: tinygrad/examples/mlperf/helpers.py
imports: from collections import OrderedDict
  import unicodedata
  import numpy
  from scipy import signal
label_desc: Use image node_id 4 for calling a global function with example usage: _get_best_indices(logits, n_best_size) and returns: list