code: def _create_merged_style(
      style: BaseStyle | None, include_default_pygments_style: bool
  ) -> BaseStyle:
      """
      Merge user defined style with built-in style.
      """
      styles = [default_ui_style()]
      if include_default_pygments_style:
          styles.append(default_pygments_style())
      if style:
          styles.append(style)
  
      return merge_styles(styles)
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/utils.py
imports: from __future__ import annotations
  from asyncio.events import AbstractEventLoop
  from typing import TYPE_CHECKING, Any, TextIO
  from prompt_toolkit.application import Application
  from prompt_toolkit.application.current import get_app_or_none, get_app_session
  from prompt_toolkit.application.run_in_terminal import run_in_terminal
  from prompt_toolkit.formatted_text import FormattedText, StyleAndTextTuples, to_formatted_text
  from prompt_toolkit.input import DummyInput
  from prompt_toolkit.layout import Layout
  from prompt_toolkit.output import ColorDepth, Output
  from prompt_toolkit.output.defaults import create_output
  from prompt_toolkit.renderer import print_formatted_text
  from prompt_toolkit.styles import BaseStyle, StyleTransformation, default_pygments_style, default_ui_style, merge_styles
label_desc: Use image node_id 3 for calling a global function with example usage: _create_merged_style(style, include_default_pygments_style) and returns: merge_styles