code: def test_sort_with_indices():
      data = [[1, 2, 3], [4, 5], [6]]
      ordered, orig_idx = utils.sort_with_indices(data, key=len)
      assert ordered == ([6], [4, 5], [1, 2, 3])
      assert orig_idx == (2, 1, 0)
  
      unsorted = utils.unsort(ordered, orig_idx)
      assert data == unsorted
  
file_path: stanza/stanza/tests/common/test_utils.py
imports: import lzma
  import os
  import tempfile
  import pytest
  import stanza
  import stanza.models.common.utils
  from stanza.tests import *
label_desc: Use image node_id 5 for calling a global function with example usage: test_sort_with_indices() without return types