code: def counters_doc(server, extra, doc):
      counter = Counters(server, sizing_mode="stretch_both")
      add_periodic_callback(doc, counter, 500)
      doc.add_root(counter.root)
  
imports: from __future__ import annotations
  import logging
  import math
  import os
  from bokeh.core.properties import without_property_validation
  from bokeh.layouts import column, row
  from bokeh.models import ColumnDataSource, DataRange1d, HoverTool, NumeralTickFormatter, PanTool, ResetTool, WheelZoomTool
  from bokeh.models.widgets import DataTable, TableColumn
  from bokeh.palettes import RdBu
  from bokeh.plotting import figure
  from bokeh.themes import Theme
  from jinja2 import Environment, FileSystemLoader
  from tlz import merge, partition_all
  from dask.utils import format_bytes, format_time
  from distributed.dashboard.components import add_periodic_callback
  from distributed.dashboard.components.shared import DashboardComponent, ProfileServer, ProfileTimePlot, SystemMonitor
  from distributed.dashboard.utils import _DATATABLE_STYLESHEETS_KWARGS, transpose, update
  from distributed.metrics import time
  from distributed.utils import log_errors
label_desc: Use image node_id 4 for calling a global function with example usage: counters_doc(server, extra, doc) without return types