code: def publish_bokehjs_to_cdn(
      config: Config, system: System
  ) -> ActionReturn:
      subdir = "dev" if V(config.version).is_prerelease else "release"
      version = config.version
  
      access_key_id = config.secrets["AWS_ACCESS_KEY_ID"]
      secret_access_key = config.secrets["AWS_SECRET_ACCESS_KEY"]
  
      try:
          buckets = []
          for bucket_name, bucket_region in [
              ("cdn.bokeh.org", "us-east-1"),
              ("cdn-backup.bokeh.org", "us-west-2"),
          ]:
              conn = boto.s3.connect_to_region(
                  bucket_region,
                  aws_access_key_id=access_key_id,
                  aws_secret_access_key=secret_access_key,
                  calling_format=boto.s3.connection.OrdinaryCallingFormat(),
              )
              buckets.append(conn.get_bucket(bucket_name))
  
          content_type = "application/javascript"
          for name in (
              "bokeh",
              "bokeh-gl",
              "bokeh-api",
              "bokeh-widgets",
              "bokeh-tables",
              "bokeh-mathjax",
          ):
              for suffix in ("js", "min.js", "esm.js", "esm.min.js"):
                  local_path = f"bokehjs/build/js/{name}.{suffix}"
                  cdn_path = f"bokeh/{subdir}/{name}-{version}.{suffix}"
                  for bucket in buckets:
                      _upload_file_to_cdn(
                          local_path, cdn_path, content_type, bucket
                      )
          return PASSED("Uploaded BokehJS to CDN")
      except Exception as e:
          return FAILED(
              f"BokehJS CDN upload failed: {e}", details=e.args
          )
  
file_path: bokeh/release/remote.py
imports: from __future__ import annotations
  from io import BytesIO
  from typing import Any
  import boto
  from packaging.version import Version
  from .action import FAILED, PASSED, ActionReturn
  from .config import Config
  from .logger import LOG
  from .system import System
label_desc: Use image node_id 3 for calling a global function with example usage: publish_bokehjs_to_cdn(config, system) and returns: PASSED, FAILED