class_docstr: The Epoch Max RAM metric.
  
  This plugin metric only works at training time.
class_docstr_tok: ["The","Epoch","Max","RAM","metric",".","This","plugin","metric","only","works","at","training","time","."]
docstr: Creates an instance of the epoch Max RAM metric.
  
  :param every: seconds after which update the maximum RAM usage.
docstr_tok: ["Creates","an","instance","of","the","epoch","Max","RAM","metric",".",":","param","every",":","seconds","after","which","update","the","maximum","RAM","usage","."]
code: def __init__(self, every=1):
      """Creates an instance of the epoch Max RAM metric.
  
      :param every: seconds after which update the maximum RAM usage.
      """
      super(EpochMaxRAM, self).__init__(
          every, reset_at="epoch", emit_at="epoch", mode="train"
      )
  
imports: import os
  import time
  from typing import Optional, List, TYPE_CHECKING
  from threading import Thread
  from psutil import Process
  from avalanche.evaluation import Metric, PluginMetric, GenericPluginMetric
  from avalanche.evaluation.metric_results import MetricResult
label_desc: Use image node_id 1 to create a new EpochMaxRAM object from inherited base classes: RAMPluginMetric with example: obj = EpochMaxRAM(every)