code: def pack_deployment_tarball(
      config: Config, system: System
  ) -> ActionReturn:
      try:
          dirname = f"deployment-{config.version}"
          filename = f"{dirname}.tgz"
          system.run(f"mkdir {dirname}")
          system.run(
              f"cp bokehjs/bokeh-bokehjs-{config.js_version}.tgz {dirname}"
          )
          system.run(
              f"cp $CONDA_PREFIX/conda-bld/noarch/bokeh-{config.version}-py_0.tar.bz2 {dirname}"
          )
          system.run(f"cp dist/bokeh-{config.version}.tar.gz {dirname}")
          system.run(
              f"cp dist/bokeh-{config.version}-py3-none-any.whl {dirname}"
          )
          system.run(f"mkdir {dirname}/bokehjs")
          system.run(f"cp -r bokehjs/build {dirname}/bokehjs")
          system.run(f"mkdir -p {dirname}/docs/bokeh/build")
          system.run(
              f"cp -r docs/bokeh/build/html {dirname}/docs/bokeh/build"
          )
          system.run(
              f"cp -r docs/bokeh/switcher.json {dirname}/docs/bokeh"
          )
          system.run(f"tar cvf {filename} {dirname}")
          return PASSED(f"Packed deployment tarball {filename!r}")
      except RuntimeError as e:
          return FAILED(
              "Could NOT pack deployment tarball", 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 9 for calling a global function with example usage: pack_deployment_tarball(config, system) and returns: PASSED, FAILED