class_docstr: A simple counter object that can periodically sync with a parent.
class_docstr_tok: ["A","simple","counter","object","that","can","periodically","sync","with","a","parent","."]
code: def restore(self, state: Mapping[str, Mapping[str, Number]]):
      # Force a sync, if necessary, on the next get_counts call.
      self._last_sync_time = 0.0
      self._counts = state["counts"]
      self._cache = state["cache"]
  
file_path: acme/acme/utils/counting.py
imports: import threading
  import time
  from typing import Dict, Mapping, Optional, Union
  from acme import core
label_desc: Use image node_id 5 for calling the Counter obj's underlying member method code with example usage: obj.restore(state) without return types