code: def __init__(self, coloring: Union[bool, Dict]) -> None:
      color_settings = None
  
      if (isinstance(coloring, Dict) or coloring) and colorama is None:
          warnings.warn(
              "The colorama package was not imported. Consider installing it for colorlog.",
              ImportWarning,
          )
  
      if isinstance(coloring, Dict):
          color_settings = default_color_settings.copy()
  
          invalid_keys = coloring.keys() - color_settings.keys()
          if len(invalid_keys) != 0:
              raise KeyError(
                  f"The key(s) {', '.join(invalid_keys)} are not supported color attributes."
              )
  
          color_settings.update(coloring)
      elif coloring is True and colorama is not None:
          color_settings = default_color_settings
  
      if color_settings is not None:
          self.coloring_enabled = True
          self.style_reset = True
          self.text_color = getattr(Fore, color_settings["text_color"])
          self.ratio_color = getattr(
              Fore, color_settings["ratio_color"]
          )
          self.metric_value_color = getattr(
              Fore, color_settings["metric_value_color"]
          )
          self.time_color = getattr(Fore, color_settings["time_color"])
          self.progress_bar_color = getattr(
              Fore, color_settings["progress_bar_color"]
          )
      else:
          self.coloring_enabled = False
          self.style_reset = False
          self.text_color = ""
          self.ratio_color = ""
          self.metric_value_color = ""
          self.time_color = ""
          self.progress_bar_color = ""
  
      self.progress_bar = False
      self.steps_progress_bar = None
      self.formatted_text = "\r"
      self.bar_format = f"{self.text_color}{{percentage}} |{self.progress_bar_color}{{bar}}{self.text_color}|"
      self.prev_print_time = None
      self.prev_message_length = 0
  
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 1 to create a new ColorProgress object  with example: obj = ColorProgress(coloring)