code: def _refresh(self):
      progress_str = self.desc + ": " if self.desc else ""
      if self.total:
          # e.g., progress: 60% 3/5
          progress_str += (
              f"{100 * self.cur // self.total}% {self.cur}/{self.total}"
          )
      else:
          # e.g., progress: .....
          progress_str += "." * self.cur
      end = "\n" if self._is_parent else ""
      print("\r" + progress_str, end=end, file=self.file)
  
imports: import sys
  import warnings
  from time import time
  from typing import cast, Iterable, Sized, TextIO
  from captum._utils.typing import Literal
label_desc: Use image node_id 5 for calling the SimpleProgress obj's underlying member method code with example usage: obj._refresh() without return types