code: def maybe_fetch_api_token():
      from anyscale.authenticate import AuthenticationBlock
  
      if not os.environ.get("ANYSCALE_CLI_TOKEN"):
          try:
              token, _ = AuthenticationBlock._load_credentials()
              logger.info(
                  "Loaded anyscale credentials from local storage."
              )
              os.environ["ANYSCALE_CLI_TOKEN"] = token
              return
          except Exception:
              pass  # Ignore errors
  
          logger.info(
              "Missing ANYSCALE_CLI_TOKEN, retrieving from AWS secrets store"
          )
          # NOTE(simon) This should automatically retrieve
          # release-automation@anyscale.com's anyscale token
          cli_token = boto3.client(
              "secretsmanager", region_name="us-west-2"
          ).get_secret_value(
              SecretId=str(RELEASE_AWS_ANYSCALE_SECRET_ARN)
          )[
              "SecretString"
          ]
          os.environ["ANYSCALE_CLI_TOKEN"] = cli_token
  
file_path: ray/release/ray_release/aws.py
imports: import os
  from copy import deepcopy
  from typing import Optional
  import boto3
  from botocore.exceptions import ClientError
  from ray_release.logger import logger
  from ray_release.util import DeferredEnvVar
label_desc: Use image node_id 2 for calling a global function with example usage: maybe_fetch_api_token() without return types