code: def summary(self) -> Summary:
      # Need to use list to ensure we get a copy, since other threads may
      # modify this while we iterate
      with self._lock:
          stats = list(self._stats.values())
      return Summary(
          uploaded_bytes=sum(f.uploaded for f in stats),
          total_bytes=sum(f.total for f in stats),
          deduped_bytes=sum(f.total for f in stats if f.deduped),
      )
  
file_path: wandb/wandb/filesync/stats.py
imports: import threading
  from typing import MutableMapping, NamedTuple
  import wandb
label_desc: Use image node_id 6 for calling the Stats obj's underlying member method code with example usage: obj.summary() and returns: Summary