code: def get_pipeline_settings() -> Dict:
      """Get pipeline settings.
  
      Retrieves settings from the buildkite agent, environment variables,
      and default values (in that order of preference)."""
      settings = get_default_settings()
      settings = update_settings_from_environment(settings)
      settings = update_settings_from_buildkite(settings)
      return settings
  
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 6 for calling a global function with example usage: get_pipeline_settings() and returns: settings