code: def test_multisort():
      mf = sorting.MultiFacet(["tag", "id"])
      try_sort(mf, lambda d: (d["tag"], d["id"]))
      try_sort(mf, lambda d: (d["tag"], d["id"]), reverse=True)
      try_sort(mf, lambda d: (d["tag"], d["id"]), limit=5)
      try_sort(mf, lambda d: (d["tag"], d["id"]), reverse=True, limit=5)
  
imports: from __future__ import with_statement
  from datetime import datetime, timedelta
  import random
  from whoosh import fields, query, sorting, columns
  from whoosh.compat import u
  from whoosh.compat import permutations, xrange
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 6 for calling a global function with example usage: test_multisort() without return types