code: def mostpopular(self, howmany):
      all = [(v, k) for k, v in self.queries.items()]
      all.sort()
      all.reverse()
      return all[:howmany]
  
imports: import time
  import sys
  import weakref
label_desc: Use image node_id 19 for calling the APSWTracer obj's underlying member method code with example usage: obj.mostpopular(howmany) and returns: all