class_docstr: Cache for VT100 escape codes. It maps
  (fgcolor, bgcolor, bold, underline, reverse) tuples to VT100 escape sequences.
  
  :param true_color: When True, use 24bit colors instead of 256 colors.
code: def __init__(self, true_color=False, ansi_colors_only=False):
      assert isinstance(true_color, bool)
      self.true_color = true_color
      self.ansi_colors_only = to_simple_filter(ansi_colors_only)
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.filters import to_simple_filter, Condition
  from prompt_toolkit.layout.screen import Size
  from prompt_toolkit.renderer import Output
  from prompt_toolkit.styles import ANSI_COLOR_NAMES
  from six.moves import range
  import array
  import errno
  import os
  import six
label_desc: Use image node_id 1 to create a new _EscapeCodeCache object from inherited base classes: dict with example: obj = _EscapeCodeCache(true_color, ansi_colors_only)