code: def _get_formatted_time(
      self, duration: float, steps: Union[int, None]
  ) -> str:
      duration_str = self._format_duration(duration)
      if steps is None:
          formatted_time = f"{self.time_color}{duration_str}/step "
      else:
          formatted_time = (
              f"{self.text_color}ETA: {self.time_color}{duration_str} "
          )
      return formatted_time
  
imports: import math
  import sys
  import time
  import warnings
  from typing import Dict, Union
  from poutyne.framework.callbacks.progress_bar import ProgressBar
  from poutyne.utils import is_in_jupyter_notebook
label_desc: Use image node_id 21 for calling the ColorProgress obj's underlying member method code with example usage: obj._get_formatted_time(duration, steps) and returns: formatted_time