code: def test_numeric_field_facet():
      schema = fields.Schema(
          id=fields.STORED, v1=fields.NUMERIC, v2=fields.NUMERIC
      )
      ix = RamStorage().create_index(schema)
      w = ix.writer()
      w.add_document(id=1, v1=2, v2=100)
      w.add_document(id=2, v1=1, v2=50)
      w.commit()
      w = ix.writer()
      w.add_document(id=3, v1=2, v2=200)
      w.add_document(id=4, v1=1, v2=100)
      w.commit()
      w = ix.writer(merge=False)
      w.add_document(id=5, v1=2, v2=50)
      w.add_document(id=6, v1=1, v2=200)
      w.commit()
  
      with ix.searcher() as s:
          mf = (
              sorting.MultiFacet()
              .add_field("v1")
              .add_field("v2", reverse=True)
          )
          r = s.search(query.Every(), sortedby=mf)
          assert [hit["id"] for hit in r] == [6, 4, 2, 3, 1, 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 12 for calling a global function with example usage: test_numeric_field_facet() without return types