code: def _stub_test(val: dict) -> Test:
      test = Test(
          {
              "name": "test",
              "cluster": {},
          }
      )
      test.update(val)
      return test
  
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 1 for calling a global function with example usage: _stub_test(val) and returns: test