code: def _run_test(
      test: Test,
      commits: Set[str],
      run_per_commit: int,
      is_full_test: bool,
  ) -> Dict[str, Dict[int, str]]:
      logger.info(f'Running test {test["name"]} on commits {commits}')
      for commit in commits:
          _trigger_test_run(test, commit, run_per_commit, is_full_test)
      return _obtain_test_result(commits, run_per_commit)
  
imports: import click
  import copy
  import subprocess
  import os
  import json
  import time
  from typing import Dict, List, Set, Tuple
  from pathlib import Path
  from ray_release.bazel import bazel_runfile
  from ray_release.logger import logger
  from ray_release.buildkite.step import get_step
  from ray_release.byod.build import build_anyscale_base_byod_images, build_anyscale_custom_byod_image
  from ray_release.config import read_and_validate_release_test_collection
  from ray_release.configs.global_config import init_global_config
  from ray_release.test import Test
  from ray_release.test_automation.release_state_machine import ReleaseTestStateMachine
label_desc: Use image node_id 4 for calling a global function with example usage: _run_test(test, commits, run_per_commit, is_full_test) and returns: _obtain_test_result