code: def sum_layout_dimensions(dimensions: list[Dimension]) -> Dimension:
      """
      Sum a list of :class:`.Dimension` instances.
      """
      min = sum(d.min for d in dimensions)
      max = sum(d.max for d in dimensions)
      preferred = sum(d.preferred for d in dimensions)
  
      return Dimension(min=min, max=max, preferred=preferred)
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/dimension.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Callable, Union
label_desc: Use image node_id 1 for calling a global function with example usage: sum_layout_dimensions(dimensions) and returns: Dimension