code: def emit(self, record):
      with self._output_lock:
          try:
              self.format(record)  # add the message to the record
              self.stream.write(self.decorate(record))
              self.stream.write(getattr(self, "terminator", "\n"))
              self.flush()
          except BrokenPipeError as e:
              raise e
          except (KeyboardInterrupt, SystemExit):
              # ignore any exceptions in these cases as any relevant messages have been printed before
              pass
          except Exception as e:
              self.handleError(record)
  
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 4 for calling the ColorizingStreamHandler obj's underlying member method code with example usage: obj.emit(record) without return types