code: def test_get_anyscale_byod_image():
      os.environ["BUILDKITE_BRANCH"] = "master"
      os.environ["BUILDKITE_COMMIT"] = "1234567890"
      assert (
          _stub_test(
              {"python": "3.7", "cluster": {"byod": {}}}
          ).get_anyscale_byod_image()
          == f"{get_global_config()['byod_ecr']}/{DATAPLANE_ECR_REPO}:123456-py37-cpu"
      )
      assert _stub_test(
          {
              "python": "3.8",
              "cluster": {
                  "byod": {
                      "type": "gpu",
                  }
              },
          }
      ).get_anyscale_byod_image() == (
          f"{get_global_config()['byod_ecr']}/"
          f"{DATAPLANE_ECR_ML_REPO}:123456-py38-gpu"
      )
      assert _stub_test(
          {
              "python": "3.8",
              "cluster": {
                  "byod": {
                      "type": "gpu",
                      "post_build_script": "foo.sh",
                  }
              },
          }
      ).get_anyscale_byod_image() == (
          f"{get_global_config()['byod_ecr']}"
          f"/{DATAPLANE_ECR_ML_REPO}:123456-py38-gpu-"
          "ab7ed2b7a7e8d3f855a7925b0d296b0f9c75fac91882aba47854d92d27e13e53"
      )
  
imports: import json
  import sys
  import os
  import platform
  from unittest import mock
  import boto3
  import pytest
  from unittest.mock import patch
  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, TestResult, TestState, _convert_env_list_to_dict, DATAPLANE_ECR_REPO, DATAPLANE_ECR_ML_REPO
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_anyscale_byod_image() without return types