code: def maybe_fetch_buildkite_token() -> str:
      buildkite_token = os.environ.get("BUILDKITE_TOKEN", None)
  
      if buildkite_token:
          return buildkite_token
  
      print(
          "Missing BUILDKITE_TOKEN, retrieving from AWS secrets store"
      )
      buildkite_token = boto3.client(
          "secretsmanager", region_name="us-west-2"
      ).get_secret_value(
          SecretId="arn:aws:secretsmanager:us-west-2:029272617770:secret:"
          "buildkite/ro-token"
      )[
          "SecretString"
      ]
      os.environ["BUILDKITE_TOKEN"] = buildkite_token
      return buildkite_token
  
file_path: ray/release/release_logs/fetch_release_logs.py
imports: import json
  import os
  import re
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Any, Dict, List, Optional
  import boto3
  import click
  from pybuildkite.buildkite import Buildkite
label_desc: Use image node_id 2 for calling a global function with example usage: maybe_fetch_buildkite_token() and returns: buildkite_token, buildkite_token