code: def test_get_ray_commit() -> None:
      assert (
          _get_ray_commit(
              {
                  "RAY_WANT_COMMIT_IN_IMAGE": "abc123",
                  "COMMIT_TO_TEST": "def456",
                  "BUILDKITE_COMMIT": "987789",
              }
          )
          == "abc123"
      )
  
      assert (
          _get_ray_commit(
              {
                  "COMMIT_TO_TEST": "def456",
                  "BUILDKITE_COMMIT": "987789",
              }
          )
          == "def456"
      )
      assert _get_ray_commit({"BUILDKITE_COMMIT": "987789"}) == "987789"
      assert _get_ray_commit({"PATH": "/usr/bin"}) == ""
  
file_path: ray/release/ray_release/tests/test_byod_build.py
imports: import sys
  import pytest
  from unittest.mock import patch
  from typing import List
  from ray_release.bazel import bazel_runfile
  from ray_release.configs.global_config import init_global_config, get_global_config
  from ray_release.test import Test
  from ray_release.byod.build import build_anyscale_custom_byod_image, build_anyscale_base_byod_images, build_champagne_image, DATAPLANE_FILENAME, _get_ray_commit
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_ray_commit() without return types