code: def outputIndices(toks, words, s, t):
      """argmax_w tok(w,s,t)"""
      res = []
      for wIdx, _ in enumerate(words):
          res.append(toks.get(wIdx, s, t))
  
      idx = [
          i[0] for i in sorted(enumerate(res), key=lambda x: x[1].score)
      ]
      return idx
  
file_path: calamari/calamari_ocr/ocr/model/ctcdecoder/token_passing_ctc_decoder.py
imports: import math
  import numpy
  from calamari_ocr.ocr.model.ctcdecoder.ctc_decoder import CTCDecoder
label_desc: Use image node_id 3 for calling a global function with example usage: outputIndices(toks, words, s, t) and returns: idx