code: def __init__(self, top_k=1000):
      self.cnt = 0
      self.hits = []
      self.top_k = top_k
      self.rank = [1, 4, 8, 16, 32, 64, 100, 128, 256, 512]
      self.LEN = len(self.rank)
      for i in range(self.LEN):
          self.hits.append(0)
  
imports: import json
  import torch
label_desc: Use image node_id 1 to create a new Stats object  with example: obj = Stats(top_k)