class_docstr: Computes the average occurrence of some event per second
class_docstr_tok: ["Computes","the","average","occurrence","of","some","event","per","second"]
code: def state_dict(self):
      return {
          "init": self.elapsed_time,
          "n": self.n,
          "round": self.round,
      }
  
imports: import bisect
  import time
  from collections import OrderedDict
  from typing import Dict, Optional
label_desc: Use image node_id 4 for calling the TimeMeter obj's underlying member method code with example usage: obj.state_dict() and returns: dict