code: def process_example(cls: type[Any]) -> None:
      """A decorator to mark abstract base classes derived from |HasProps|."""
      if "__example__" in cls.__dict__:
          cls.__doc__ = append_docstring(
              cls.__doc__,
              _EXAMPLE_TEMPLATE.format(
                  path=cls.__dict__["__example__"]
              ),
          )
  
file_path: bokeh/src/bokeh/model/docs.py
imports: from __future__ import annotations
  import logging
  from operator import itemgetter
  from typing import TYPE_CHECKING, Any
  from ..util.serialization import make_id
  from ..util.strings import append_docstring
label_desc: Use image node_id 2 for calling a global function with example usage: process_example(cls) without return types