class_docstr: Turn a pygments token list into a list of prompt_toolkit text fragments
  (``(style_str, text)`` tuples).
code: def __pt_formatted_text__(self) -> StyleAndTextTuples:
      result: StyleAndTextTuples = []
  
      for token, text in self.token_list:
          result.append(
              ("class:" + pygments_token_to_classname(token), text)
          )
  
      return result
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from prompt_toolkit.styles.pygments import pygments_token_to_classname
  from .base import StyleAndTextTuples
label_desc: Use image node_id 2 for calling the PygmentsTokens obj's underlying member method code with example usage: obj.__pt_formatted_text__() and returns: result