code: def __init__(self, nocolor=False, stream=sys.stderr, mode=None):
      super().__init__(stream=stream)
  
      if mode is None:
          mode = get_default_exec_mode()
  
      self._output_lock = threading.Lock()
  
      self.nocolor = nocolor or not self.can_color_tty(mode)
  
imports: import logging
  import platform
  import time
  import datetime
  import sys
  import os
  import json
  import threading
  from functools import partial
  import inspect
  import textwrap
label_desc: Use image node_id 1 to create a new ColorizingStreamHandler object from inherited base classes: _logging with example: obj = ColorizingStreamHandler(nocolor, stream, mode)