class_docstr: Implementation of ActivationStatisticsObserver which collects
  the statistics in a list (especially useful for tests)
class_docstr_tok: ["Implementation","of","ActivationStatisticsObserver","which","collects","the","statistics","in","a","list","(","especially","useful","for","tests",")"]
code: def consume(self, stat: ActivationStatistics):
      self.stats.append(stat)
  
imports: import abc
  from typing import NamedTuple, Set
  import numpy
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the ActivationStatisticsAccumulator obj's underlying member method code with example usage: obj.consume(stat) without return types