class_docstr: The standalone disk usage metric.
  
  This metric can be used to monitor the size of a set of directories.
  e.g. This can be useful to monitor the size of a replay buffer,
docstr: Creates an instance of the standalone disk usage metric.
  
  The `result` method will return the sum of the size
  of the directories specified as the first parameter in KiloBytes.
  
  :param paths_to_monitor: a path or a list of paths to monitor. If None,
      the current working directory is used. Defaults to None.
docstr_tok: ["Creates","an","instance","of","the","standalone","disk","usage","metric",".","The","`","result","`","method","will","return","the","sum","of","the","size","of","the","directories","specified","as","the","first","parameter","in","KiloBytes",".",":","param","paths_to_monitor",":","a","path","or","a","list","of","paths","to","monitor",".","If","None",",","the","current","working","directory","is","used",".","Defaults","to","None","."]
code: def __init__(
      self,
      paths_to_monitor: Optional[
          Union[PathAlike, Sequence[PathAlike]]
      ] = None,
  ):
      """
      Creates an instance of the standalone disk usage metric.
  
      The `result` method will return the sum of the size
      of the directories specified as the first parameter in KiloBytes.
  
      :param paths_to_monitor: a path or a list of paths to monitor. If None,
          the current working directory is used. Defaults to None.
      """
  
      if paths_to_monitor is None:
          paths_to_monitor = [os.getcwd()]
      if isinstance(paths_to_monitor, (str, Path)):
          paths_to_monitor = [paths_to_monitor]
  
      self._paths_to_monitor: List[str] = [
          str(p) for p in paths_to_monitor
      ]
  
      self.total_usage: float = 0.0
  
imports: import os
  from pathlib import Path
  from typing import Union, Sequence, List, Optional
  from avalanche.evaluation import Metric, GenericPluginMetric
label_desc: Use image node_id 1 to create a new DiskUsage object from inherited base classes: Metric with example: obj = DiskUsage(paths_to_monitor)