code: def score(self, weight_in_top, weight_in_collection, top_total):
      wit_over_tt = weight_in_top / top_total
      wic_over_ct = weight_in_collection / self.collection_total
  
      if wit_over_tt < wic_over_ct:
          return 0
      else:
          return wit_over_tt * log(
              wit_over_tt / (weight_in_top / self.collection_total), 2
          )
  
imports: from __future__ import division
  import random
  from collections import defaultdict
  from math import log
  from whoosh.compat import xrange, iteritems
label_desc: Use image node_id 2 for calling the KLModel obj's underlying member method code with example usage: obj.score(weight_in_top, weight_in_collection, top_total) and returns: int, unknown