code: def tooltips():
      plot, groups = bohr_diagram()
  
      style = Styles(
          display="grid",
          grid_template_columns="auto auto",
          column_gap="10px",
      )
      grid = Div(style=style)
      grid.children = [
          Span(),
          Span(children=["#", Index()]),
          "Name",
          Span(
              style=dict(font_weight="bold"),
              children=[ValueRef(field="name")],
          ),
          "Atomic number",
          ValueRef(field="atomic number"),
          "Atomic mass",
          ValueRef(field="atomic mass"),
          "Type",
          ValueRef(field="metal"),
          "CPK color",
          ColorRef(field="CPK", hex=True, swatch=True),
          "Electronic configuration",
          ValueRef(field="electronic configuration"),
          Span(),
          plot,
      ]
      return Template(
          children=[grid], actions=[ToggleGroup(groups=groups)]
      )
  
file_path: bokeh/examples/plotting/periodic_shells.py
imports: import re
  import numpy
  from bokeh.io import show
  from bokeh.models import RendererGroup
  from bokeh.models.dom import ColorRef, Div, Index, Span, Styles, Template, ToggleGroup, ValueRef
  from bokeh.plotting import figure
  from bokeh.sampledata.periodic_table import elements
  from bokeh.transform import dodge, factor_cmap
label_desc: Use image node_id 2 for calling a global function with example usage: tooltips() and returns: Template