class_docstr: Turn a dictionary that maps `Token` to `Attrs` into a style class.
  
  :param token_to_attrs: Dictionary that maps `Token` to `Attrs`.
class_docstr_tok: ["Turn","a","dictionary","that","maps","`","Token","`","to","`","Attrs","`","into","a","style","class",".",":","param","token_to_attrs",":","Dictionary","that","maps","`","Token","`","to","`","Attrs","`","."]
code: def __init__(self, token_to_attrs):
      self.token_to_attrs = token_to_attrs
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/styles/from_dict.py
imports: from .base import Style, DEFAULT_ATTRS, ANSI_COLOR_NAMES
  from .defaults import DEFAULT_STYLE_EXTENSIONS
  from .utils import merge_attrs, split_token_in_parts
  from six.moves import range
label_desc: Use image node_id 1 to create a new _StyleFromDict object from inherited base classes: Style with example: obj = _StyleFromDict(token_to_attrs)