code: def __iter__(self):
      if self.closed or not self.iterable:
          return
      self._refresh()
      for it in self.iterable:
          yield it
          self.update()
      self.close()
  
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 4 for calling the SimpleProgress obj's underlying member method code with example usage: obj.__iter__() without return types