class_docstr: Display the iterations per second.
class_docstr_tok: ["Display","the","iterations","per","second","."]
code: def get_width(self, progress_bar: ProgressBar) -> AnyDimension:
      all_values = [
          len(
              f"{c.items_completed / c.time_elapsed.total_seconds():.2f}"
          )
          for c in progress_bar.counters
      ]
      if all_values:
          return max(all_values)
      return 0
  
imports: from __future__ import annotations
  import datetime
  import time
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING
  from prompt_toolkit.formatted_text import HTML, AnyFormattedText, StyleAndTextTuples, to_formatted_text
  from prompt_toolkit.formatted_text.utils import fragment_list_width
  from prompt_toolkit.layout.dimension import AnyDimension, D
  from prompt_toolkit.layout.utils import explode_text_fragments
  from prompt_toolkit.utils import get_cwidth
label_desc: Use image node_id 2 for calling the IterationsPerSecond obj's underlying member method code with example usage: obj.get_width(progress_bar) and returns: int, max