code: def test_gridplot_merge_tools_nested() -> None:
      p1, p2, p3, p4, p5, p6, p7 = (
          figure(),
          figure(),
          figure(),
          figure(),
          figure(),
          figure(),
          figure(),
      )
      r1 = row(p1, p2)
      r2 = row(p3, p4)
      c = column(row(p5), row(p6))
  
      gridplot([[r1, r2], [c, p7]], merge_tools=True)
  
      for p in p1, p2, p3, p4, p5, p6, p7:
          assert p.toolbar_location is None
  
file_path: bokeh/tests/unit/bokeh/test_layouts.py
imports: from __future__ import annotations
  import pytest
  from unittest import mock
  from bokeh.core.validation import check_integrity, process_validation_issues
  from bokeh.layouts import column, grid, gridplot, group_tools, layout, row
  from bokeh.models import BoxAnnotation, BoxSelectTool, Column, GlyphRenderer, GridBox, GridPlot, HoverTool, LayoutDOM, PanTool, Row, SaveTool, Spacer, TapTool, ToolProxy
  from bokeh.plotting import figure
label_desc: Use image node_id 3 for calling a global function with example usage: test_gridplot_merge_tools_nested() without return types