code: def check_children_prop(layout_callable: type[Row | Column]):
      ## component subclasses are layouts, widgets and plots
      components = [Row(), Column(), figure()]
  
      # Test layout accepts splatted components
      layout1 = layout_callable(*components)
      assert layout1.children == components
  
      # Test layout accepts children argument
      layout2 = layout_callable(children=components)
      assert layout2.children == components
  
      # Test value error raised when non-layout is provided as children
      with pytest.raises(ValueError):
          layout_callable(children=[ColumnDataSource()])
  
file_path: bokeh/tests/unit/bokeh/models/test_layouts__models.py
imports: from __future__ import annotations
  import pytest
  from bokeh.models import ColumnDataSource
  from bokeh.models.ui import Tooltip
  from bokeh.plotting import figure
  from bokeh.models.layouts import Row, Column, LayoutDOM, TabPanel
label_desc: Use image node_id 3 for calling a global function with example usage: check_children_prop(layout_callable) without return types