code: def build_docs(config: Config, system: System) -> ActionReturn:
      try:
          system.cd("docs/bokeh")
          system.run(
              "make clean all SPHINXOPTS=-v",
              BOKEH_DOCS_CDN=config.version,
              BOKEH_DOCS_VERSION=config.version,
          )
          system.cd("../..")
          return PASSED("Docs build succeeded")
      except RuntimeError as e:
          return FAILED("Docs build did NOT succeed", details=e.args)
  
imports: from __future__ import annotations
  import json
  from typing import Any, Callable
  from .action import FAILED, PASSED, ActionReturn
  from .config import Config
  from .system import System
  from .util import skip_for_prerelease
label_desc: Use image node_id 4 for calling a global function with example usage: build_docs(config, system) and returns: PASSED, FAILED