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 __missing__(self, attrs):
      fgcolor, bgcolor, bold, underline, italic, blink, reverse = attrs
      parts = []
  
      parts.extend(self._colors_to_code(fgcolor, bgcolor))
  
      if bold:
          parts.append("1")
      if italic:
          parts.append("3")
      if blink:
          parts.append("5")
      if underline:
          parts.append("4")
      if reverse:
          parts.append("7")
  
      if parts:
          result = "\x1b[0;" + ";".join(parts) + "m"
      else:
          result = "\x1b[0m"
  
      self[attrs] = result
      return result
  
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 2 for calling the _EscapeCodeCache obj's underlying member method code with example usage: obj.__missing__(attrs) and returns: result