code: def test_build_anyscale_base_byod_images() -> None:
      images = []
  
      def _mock_validate_and_push(image: str) -> None:
          images.append(image)
  
      def _mock_image_exist(image: str) -> bool:
          return "rayproject/ray" in image
  
      with patch(
          "ray_release.byod.build._download_dataplane_build_file",
          return_value=None,
      ), patch(
          "os.environ",
          {"BUILDKITE_COMMIT": "abc123", "BUILDKITE_BRANCH": "master"},
      ), patch(
          "subprocess.check_call", return_value=None
      ), patch(
          "ray_release.byod.build._image_exist",
          side_effect=_mock_image_exist,
      ), patch(
          "ray_release.byod.build._validate_and_push",
          side_effect=_mock_validate_and_push,
      ):
          tests = [
              Test(name="aws", env="aws", cluster={"byod": {}}),
              Test(
                  name="aws",
                  env="aws",
                  cluster={"byod": {"type": "gpu"}},
              ),
              Test(
                  # This is a duplicate of the default.
                  name="aws",
                  env="aws",
                  python="3.9",
                  cluster={"byod": {"type": "cpu"}},
              ),
              Test(
                  name="aws",
                  env="aws",
                  cluster={"byod": {"type": "cu121"}},
              ),
              Test(
                  name="aws",
                  env="aws",
                  python="3.9",
                  cluster={"byod": {"type": "cu116"}},
              ),
              Test(
                  name="aws",
                  env="aws",
                  python="3.11",
                  cluster={"byod": {"type": "cu118"}},
              ),
              Test(name="gce", env="gce", cluster={"byod": {}}),
          ]
          build_anyscale_base_byod_images(tests)
          global_config = get_global_config()
          aws_cr = global_config["byod_aws_cr"]
          gcp_cr = global_config["byod_gcp_cr"]
          assert images == [
              f"{aws_cr}/anyscale/ray:abc123-py39-cpu",
              f"{aws_cr}/anyscale/ray-ml:abc123-py39-gpu",
              f"{aws_cr}/anyscale/ray:abc123-py39-cu121",
              f"{aws_cr}/anyscale/ray:abc123-py39-cu116",
              f"{aws_cr}/anyscale/ray:abc123-py311-cu118",
              f"{gcp_cr}/anyscale/ray:abc123-py39-cpu",
          ]
  
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 4 for calling a global function with example usage: test_build_anyscale_base_byod_images() and returns: unknown