code: def test_is_byod_cluster():
      assert not _stub_test({}).is_byod_cluster()
      assert _stub_test({"cluster": {"byod": {}}}).is_byod_cluster()
      assert _stub_test(
          {"cluster": {"byod": {"type": "gpu"}}}
      ).is_byod_cluster()
      with mock.patch.dict(os.environ, {"BUILDKITE_PULL_REQUEST": "1"}):
          assert _stub_test({"cluster": {"byod": {}}}).is_byod_cluster()
      with mock.patch.dict(
          os.environ, {"BUILDKITE_PULL_REQUEST": "false"}
      ):
          assert _stub_test({"cluster": {"byod": {}}}).is_byod_cluster()
  
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 2 for calling a global function with example usage: test_is_byod_cluster() without return types