docstr: Format on a end phase: the total time for the test, the steps done and the metrics name and values.
docstr_tok: ["Format","on","a","end","phase",":","the","total","time","for","the","test",",","the","steps","done","and","the","metrics","name","and","values","."]
code: def on_phase_end(
      self,
      total_time: float,
      steps: int,
      metrics_str: str,
      prefix: str = "",
  ) -> None:
      """
      Format on a end phase: the total time for the test, the steps done and the metrics name and values.
      """
      update = self.formatted_text
      test_steps = self._get_formatted_step(
          steps, steps, prefix=prefix, suffix="s", ratio=False
      )
      update += test_steps + self._get_formatted_total_time(total_time)
      if metrics_str != "":
          update += self._get_formatted_metrics(metrics_str)
  
      if self.style_reset:
          update += Style.RESET_ALL
  
      self._end_print(update)
  
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 15 for calling the ColorProgress obj's underlying member method code with example usage: obj.on_phase_end(total_time, steps, metrics_str, prefix) without return types