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 get_attrs_for_token(self, token):
      # Split Token.
      list_of_attrs = []
      for token in split_token_in_parts(token):
          list_of_attrs.append(
              self.token_to_attrs.get(token, DEFAULT_ATTRS)
          )
      return merge_attrs(list_of_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 2 for calling the _StyleFromDict obj's underlying member method code with example usage: obj.get_attrs_for_token(token) and returns: merge_attrs