class_docstr: real time speed stat
class_docstr_tok: ["real","time","speed","stat"]
code: def put(self, timestamp, num):
      timestamp = timestamp / self.sample_range
      ver = int(timestamp * self.bucket_num // 1)
      i = int(timestamp % 1 * self.bucket_num // 1)
      if ver > self.bucket_ver[i]:
          self.bucket_ver[i], self.bucket[i], self.bucket_sample[i] = (
              ver,
              num,
              1,
          )
      else:
          self.bucket[i] += num
          self.bucket_sample[i] += 1
  
imports: import asyncio
  import math
  import time
  from collections import defaultdict
  from tabulate import tabulate
label_desc: Use image node_id 2 for calling the DynamicBucketMerge obj's underlying member method code with example usage: obj.put(timestamp, num) without return types