code: def test_get_flaky_test_targets() -> None:
      _TEST_YAML = "flaky_tests: [windows://t1, //t2]"
  
      with TemporaryDirectory() as tmp:
          with open(os.path.join(tmp, "core.tests.yml"), "w") as f:
              f.write(_TEST_YAML)
          assert _get_flaky_test_targets(
              "core", "windows", yaml_dir=tmp
          ) == ["//t1"]
          assert _get_flaky_test_targets(
              "core", "linux", yaml_dir=tmp
          ) == ["//t2"]
  
file_path: ray/ci/ray_ci/test_tester.py
imports: import os
  import re
  import sys
  from tempfile import TemporaryDirectory
  from unittest import mock
  import pytest
  from ci.ray_ci.linux_tester_container import LinuxTesterContainer
  from ci.ray_ci.windows_tester_container import WindowsTesterContainer
  from ci.ray_ci.tester import _add_default_except_tags, _get_container, _get_all_test_query, _get_test_targets, _get_flaky_test_targets, _get_tag_matcher
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_flaky_test_targets() without return types