code: def _get_flaky_test_targets(
      team: str, operating_system: str, yaml_dir: Optional[str] = None
  ) -> List[str]:
      """
      Get all test targets that are flaky
      """
      if not yaml_dir:
          yaml_dir = os.path.join(bazel_workspace_dir, "ci/ray_ci")
  
      with open(f"{yaml_dir}/{team}.tests.yml", "rb") as f:
          all_flaky_tests = yaml.safe_load(f)["flaky_tests"]
  
          # linux tests are prefixed with "//"
          if operating_system == "linux":
              return [
                  test
                  for test in all_flaky_tests
                  if test.startswith("//")
              ]
  
          # and other os tests are prefixed with "os:"
          os_prefix = f"{operating_system}:"
          return [
              test.lstrip(os_prefix)
              for test in all_flaky_tests
              if test.startswith(os_prefix)
          ]
  
file_path: ray/ci/ray_ci/tester.py
imports: import os
  import sys
  from typing import List, Tuple, Optional
  import yaml
  import click
  from ci.ray_ci.container import _DOCKER_ECR_REPO
  from ci.ray_ci.builder_container import BuilderContainer, DEFAULT_BUILD_TYPE, DEFAULT_PYTHON_VERSION, DEFAULT_ARCHITECTURE, PYTHON_VERSIONS
  from ci.ray_ci.linux_tester_container import LinuxTesterContainer
  from ci.ray_ci.windows_tester_container import WindowsTesterContainer
  from ci.ray_ci.tester_container import TesterContainer
  from ci.ray_ci.utils import docker_login
  from ray_release.configs.global_config import init_global_config
  from ray_release.bazel import bazel_runfile
label_desc: Use image node_id 7 for calling a global function with example usage: _get_flaky_test_targets(team, operating_system, yaml_dir) and returns: unknown, unknown