code: def build_npm_packages(
      config: Config, system: System
  ) -> ActionReturn:
      try:
          system.cd("bokehjs")
          system.run("npm pack")
          system.cd("..")
          return PASSED("npm pack succeeded")
      except RuntimeError as e:
          return FAILED("npm pack 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 2 for calling a global function with example usage: build_npm_packages(config, system) and returns: PASSED, FAILED