code: def test_numeric():
      try_sort("num", lambda d: d["num"])
      try_sort("num", lambda d: d["num"], reverse=True)
      try_sort("num", lambda d: d["num"], limit=5)
      try_sort("frac", lambda d: d["frac"])
  
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 7 for calling a global function with example usage: test_numeric() without return types