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: Retrieves the disk usage as computed during the last call to the
  `update` method.
  
  Calling this method will not change the internal state of the metric.
  
  :return: The disk usage or None if `update` was not invoked yet.
docstr_tok: ["Retrieves","the","disk","usage","as","computed","during","the","last","call","to","the","`","update","`","method",".","Calling","this","method","will","not","change","the","internal","state","of","the","metric",".",":","return",":","The","disk","usage","or","None","if","`","update","`","was","not","invoked","yet","."]
code: def result(self) -> Optional[float]:
      """
      Retrieves the disk usage as computed during the last call to the
      `update` method.
  
      Calling this method will not change the internal state of the metric.
  
      :return: The disk usage or None if `update` was not invoked yet.
      """
  
      return self.total_usage
  
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 3 for calling the DiskUsage obj's underlying member method code with example usage: obj.result() and returns: self