code: def unsort(sorted_list, oidx):
      """
      Unsort a sorted list, based on the original idx.
      """
      assert len(sorted_list) == len(
          oidx
      ), "Number of list elements must match with original indices."
      _, unsorted = [
          list(t) for t in zip(*sorted(zip(oidx, sorted_list)))
      ]
      return unsorted
  
file_path: stanza/stanza/models/common/seq2seq_utils.py
imports: from collections import Counter
  import random
  import json
  import torch
  import stanza.models.common.seq2seq_constant
label_desc: Use image node_id 12 for calling a global function with example usage: unsort(sorted_list, oidx) and returns: unsorted