class_docstr: A histogram measures the distribution of values in a stream of data.
class_docstr_tok: ["A","histogram","measures","the","distribution","of","values","in","a","stream","of","data","."]
code: def record(self, value=1, tags: Optional[Dict[str, str]] = None):
      self._data.append(value)
      now = time.time()
      if (
          len(self._data) >= _THRESHOLD
          or now - self._last_time >= _RECORDED_INTERVAL_SECS
      ):
          avg = sum(self._data) / len(self._data)
          self._record(avg, tags)
          self._data.clear()
          self._last_time = now
  
imports: import time
  from abc import ABC
  from typing import Dict, Optional, Tuple
label_desc: Use image node_id 2 for calling the AbstractHistogram obj's underlying member method code with example usage: obj.record(value, tags) without return types