code: def total(self) -> int:
      assert len(self._progress.tasks) == 1
      return int(self._progress.tasks[0].total or 0)
  
imports: from typing import Optional, Callable, Tuple, List
  from rich import filesize
  from rich.progress import MofNCompleteColumn, BarColumn, TextColumn, TimeRemainingColumn, TimeElapsedColumn, Progress, ProgressColumn, TaskProgressColumn, Task
  from rich.text import Text
label_desc: Use image node_id 2 for calling the SimpleCopyToolProgressBarTask obj's underlying member method code with example usage: obj.total() and returns: int