code: def get_buildkite_prompt_value(key: str) -> Optional[str]:
      try:
          value = subprocess.check_output(
              ["buildkite-agent", "meta-data", "get", key], text=True
          )
      except Exception as e:
          logger.warning(f"Could not fetch metadata for {key}: {e}")
          return None
      logger.debug(f"Got Buildkite prompt value for {key}: {value}")
      return value
  
file_path: ray/release/ray_release/buildkite/settings.py
imports: import enum
  import os
  import subprocess
  from typing import Optional, Dict, Tuple
  from ray_release.exception import ReleaseTestConfigError
  from ray_release.logger import logger
  from ray_release.wheels import DEFAULT_BRANCH, get_buildkite_repo_branch
label_desc: Use image node_id 5 for calling a global function with example usage: get_buildkite_prompt_value(key) and returns: value, None