code: def mk_tab(color: str):
      plot = figure(width=300, height=300)
      plot.scatter(
          flowers["petal_length"],
          flowers["petal_width"],
          color=color,
          fill_alpha=0.2,
          size=12,
      )
      return TabPanel(
          title=f"Tab 1: {color.capitalize()}",
          child=plot,
          closable=True,
      )
  
file_path: bokeh/examples/models/widgets.py
imports: from datetime import date, datetime, time
  from bokeh import palettes
  from bokeh.document import Document
  from bokeh.embed import file_html
  from bokeh.models import BuiltinIcon, ByCSS, Column, ColumnDataSource, Dialog, Examiner, GroupBox, Menu, Row, SetValue, SVGIcon, TablerIcon, TabPanel, Tabs, Tooltip, widgets
  from bokeh.models.dom import HTML, ValueOf
  from bokeh.plotting import figure
  from bokeh.sampledata.autompg2 import autompg2
  from bokeh.sampledata.iris import flowers
  from bokeh.util.browser import view
label_desc: Use image node_id 1 for calling a global function with example usage: mk_tab(color) and returns: TabPanel