class_docstr: The standalone CPU usage metric.
  
  Instances of this metric compute the average CPU usage as a float value.
  The metric starts tracking the CPU usage when the `update` method is called
  for the first time. That is, the tracking does not start at the time the
  constructor is invoked.
  
  Calling the `update` method more than twice will update the metric to the
  average usage between the first and the last call to `update`.
  
  The result, obtained using the `result` method, is the usage computed
  as stated above.
  
  The reset method will bring the metric to its initial state. By default
  this metric in its initial state will return an usage value of 0.
class_docstr_tok: ["The","standalone","CPU","usage","metric",".","Instances","of","this","metric","compute","the","average","CPU","usage","as","a","float","value",".","The","metric","starts","tracking","the","CPU","usage","when","the","`","update","`","method","is","called","for","the","first","time",".","That","is",",","the","tracking","does","not","start","at","the","time","the","constructor","is","invoked",".","Calling","the","`","update","`","method","more","than","twice","will","update","the","metric","to","the","average","usage","between","the","first","and","the","last","call","to","`","update","`",".","The","result",",","obtained","using","the","`","result","`","method",",","is","the","usage","computed","as","stated","above",".","The","reset","method","will","bring","the","metric","to","its","initial","state",".","By","default","this","metric","in","its","initial","state","will","return","an","usage","value","of","0","."]
docstr: Resets the metric.
  
  :return: None.
docstr_tok: ["Resets","the","metric",".",":","return",":","None","."]
code: def reset(self) -> None:
      """
      Resets the metric.
  
      :return: None.
      """
      self._mean_usage.reset()
      self._process_handle = None
      self._first_update = True
  
imports: import os
  import warnings
  from typing import Optional, List
  from psutil import Process
  from avalanche.evaluation import Metric, PluginMetric, GenericPluginMetric
  from avalanche.evaluation.metrics import Mean
label_desc: Use image node_id 4 for calling the CPUUsage obj's underlying member method code with example usage: obj.reset() without return types