code: def update_progress_bar(
      progress_bar: tqdm, num_steps_completed: int, refresh_rate: int
  ) -> None:
      """Updates a progress bar to reflect the number of steps completed."""
      if num_steps_completed % refresh_rate == 0:
          progress_bar.update(refresh_rate)
  
imports: import logging
  from typing import Iterable, Optional
  from torchtnt.utils.progress import estimated_steps_in_epoch
  from tqdm.auto import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: update_progress_bar(progress_bar, num_steps_completed, refresh_rate) without return types