code: def _pad_length(self, message):
      new_message_length = len(message)
      if new_message_length < self.prev_message_length:
          # Pad current message to overwrite the previous longuer message.
          message = message.ljust(self.prev_message_length)
      self.prev_message_length = new_message_length
      return message
  
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 26 for calling the ColorProgress obj's underlying member method code with example usage: obj._pad_length(message) and returns: message