def _GetTopN(objects, n):
  return sorted(objects, key=lambda o: o.count, reverse=True)[:n]
Returns top n objects with maximum count.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/search/stub/simple_facet.py/_GetTopN