class_docstr: A colorizer is an object that loosely wraps around a stream, allowing
  callers to write text to the stream in a particular color.
  
  Colorizer classes must implement C{supported()} and C{write(text, color)}.
class_docstr_tok: ["A","colorizer","is","an","object","that","loosely","wraps","around","a","stream",",","allowing","callers","to","write","text","to","the","stream","in","a","particular","color",".","Colorizer","classes","must","implement","C","{","supported","(",")","}","and","C","{","write","(","text",",","color",")","}","."]
code: def __init__(self, stream):
      self.stream = stream
  
imports: import numpy
  import logging
  import subprocess
  import os
  import torch
  from collections import OrderedDict
  import plotting
  import sys
  import importlib.util
  import pandas
  import pickle
label_desc: Use image node_id 1 to create a new _AnsiColorizer object from inherited base classes: object with example: obj = _AnsiColorizer(stream)