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 load_state_dict(self, state_dict):
      if "start" in state_dict:
          # backwards compatibility for old state_dicts
          self.reset(init=state_dict["init"])
      else:
          self.reset(init=state_dict["init"], n=state_dict["n"])
          self.round = state_dict.get("round", None)
  
imports: import bisect
  import time
  from collections import OrderedDict
  from typing import Dict, Optional
label_desc: Use image node_id 5 for calling the TimeMeter obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types