code: def sum_layout_dimensions(dimensions):
      """
      Sum a list of :class:`.LayoutDimension` instances.
      """
      min = sum([d.min for d in dimensions if d.min is not None])
      max = sum([d.max for d in dimensions if d.max is not None])
      preferred = sum([d.preferred for d in dimensions])
  
      return LayoutDimension(min=min, max=max, preferred=preferred)
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/layout/dimension.py
imports: from __future__ import unicode_literals
label_desc: Use image node_id 1 for calling a global function with example usage: sum_layout_dimensions(dimensions) and returns: LayoutDimension