code: def setup(app):
      """Required Sphinx extension setup function."""
      app.add_directive_to_domain(
          "py", "bokeh-model", BokehModelDirective
      )
  
      return PARALLEL_SAFE
  
imports: from __future__ import annotations
  import logging
  import importlib
  import json
  import warnings
  from os import getenv
  from typing import Any
  from docutils.parsers.rst.directives import unchanged
  from sphinx.errors import SphinxError
  from bokeh.core.property.singletons import Undefined
  from bokeh.core.serialization import AnyRep, Serializer, SymbolRep
  from bokeh.model import Model
  from bokeh.util.warnings import BokehDeprecationWarning
  from .None import PARALLEL_SAFE
  from .bokeh_directive import BokehDirective, py_sig_re
  from .templates import MODEL_DETAIL
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: PARALLEL_SAFE