code: def generate_structure_plot(f: Model) -> Model:
      """Given a bokeh model f, return a model that displays the graph of its submodels.
  
      Clicking on the nodes of the graph reveals the attributes of that submodel.
  
      """
  
      return _BokehStructureGraph(f).model
  
file_path: bokeh/src/bokeh/models/util/structure.py
imports: from __future__ import annotations
  import logging
  from itertools import permutations
  from typing import TYPE_CHECKING
  from bokeh.core.properties import UnsetValueError
  from bokeh.layouts import column
  from bokeh.models import BoxZoomTool, CDSView, ColumnDataSource, CustomJS, DataTable, GlyphRenderer, GroupFilter, HoverTool, Label, LabelSet, MultiLine, PanTool, Plot, Range1d, ResetTool, Scatter, TableColumn, TapTool
label_desc: Use image node_id 1 for calling a global function with example usage: generate_structure_plot(f) and returns: _BokehStructureGraph