code: def _get_ray_commit(envs: Optional[Dict[str, str]] = None) -> str:
      if envs is None:
          envs = os.environ
      for key in [
          "RAY_WANT_COMMIT_IN_IMAGE",
          "COMMIT_TO_TEST",
          "BUILDKITE_COMMIT",
      ]:
          commit = envs.get(key, "")
          if commit:
              return commit
      return ""
  
file_path: ray/release/ray_release/byod/build.py
imports: from typing import List, Optional, Dict
  import boto3
  import hashlib
  import os
  import subprocess
  import sys
  import time
  from ray_release.config import RELEASE_PACKAGE_DIR
  from ray_release.configs.global_config import get_global_config
  from ray_release.logger import logger
  from ray_release.test import Test, DATAPLANE_ECR_REPO, DATAPLANE_ECR_ML_REPO
label_desc: Use image node_id 5 for calling a global function with example usage: _get_ray_commit(envs) and returns: str, commit