code: def _stub_test(val: dict) -> Test:
      """
      A helper function to create a test object with a given dictionary.
      """
      test = Test(
          {
              "name": "test",
              "cluster": {},
          }
      )
      test.update(val)
      return test
  
file_path: ray/release/ray_release/tests/test_step.py
imports: import sys
  import pytest
  from ray_release.bazel import bazel_runfile
  from ray_release.buildkite.step import get_step
  from ray_release.configs.global_config import init_global_config
  from ray_release.test import Test
label_desc: Use image node_id 1 for calling a global function with example usage: _stub_test(val) and returns: test