code: def _weighting_classes(ignore):
      # Get all the subclasses of Weighting in whoosh.scoring
      return [
          c
          for _, c in inspect.getmembers(scoring, inspect.isclass)
          if scoring.Weighting in c.__bases__ and c not in ignore
      ]
  
file_path: whoosh/tests/test_weightings.py
imports: from __future__ import with_statement
  import inspect
  from random import choice, randint
  import sys
  from whoosh import fields, query, scoring
  from whoosh.compat import u, xrange, permutations
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 1 for calling a global function with example usage: _weighting_classes(ignore) and returns: unknown