code: def update_changelog(config: Config, system: System) -> ActionReturn:
      try:
          system.pushd("scripts")
          system.run(
              f"python milestone.py -a {config.milestone_version}"
          )
          system.popd()
          config.add_modified("docs/CHANGELOG")
          return PASSED("Updated CHANGELOG with new closed issues")
      except RuntimeError as e:
          return FAILED("CHANGELOG update failed", 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 11 for calling a global function with example usage: update_changelog(config, system) and returns: PASSED, FAILED