code: def build(
      base_dir: PathLike, *, rebuild: bool = False, debug: bool = False
  ) -> bool:
      """Build a bokeh extension in the given directory.
  
      Arguments:
          base_dir (str) : The location of the extension.
  
          rebuild (bool) : Ignore caches and rebuild from scratch.
  
          debug (bool) : Allow for remote debugging.
  
      Returns:
          bool
  
      """
      args: list[str] = []
      if rebuild:
          args.append("--rebuild")
      proc = _run_command("build", base_dir, args, debug)
      return proc.returncode == 0
  
file_path: bokeh/src/bokeh/ext.py
imports: from __future__ import annotations
  import logging
  from os import fspath
  from subprocess import Popen
  from .None import __version__
  from .core.types import PathLike
  from .settings import settings
  from .util.compiler import _nodejs_path
label_desc: Use image node_id 2 for calling a global function with example usage: build(base_dir) and returns: unknown