code: def style_from_pygments_cls(
      pygments_style_cls: type[PygmentsStyle],
  ) -> Style:
      """
      Shortcut to create a :class:`.Style` instance from a Pygments style class
      and a style dictionary.
  
      Example::
  
          from prompt_toolkit.styles.from_pygments import style_from_pygments_cls
          from pygments.styles import get_style_by_name
          style = style_from_pygments_cls(get_style_by_name('monokai'))
  
      :param pygments_style_cls: Pygments style class to start from.
      """
      # Import inline.
      from pygments.style import Style as PygmentsStyle
  
      assert issubclass(pygments_style_cls, PygmentsStyle)
  
      return style_from_pygments_dict(pygments_style_cls.styles)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from .style import Style
label_desc: Use image node_id 1 for calling a global function with example usage: style_from_pygments_cls(pygments_style_cls) and returns: style_from_pygments_dict