code: def get_test_prioritizations(
      tests: List[str], file: Any = sys.stdout
  ) -> AggregatedHeuristics:
      aggregated_results = AggregatedHeuristics(unranked_tests=tests)
      print(f"Received {len(tests)} tests to prioritize", file=file)
      for test in tests:
          print(f"  {test}", file=file)
  
      for heuristic in HEURISTICS:
          new_rankings: TestPrioritizations = (
              heuristic.get_test_priorities(tests)
          )
          aggregated_results.add_heuristic_results(
              heuristic, new_rankings
          )
  
          num_tests_found = len(new_rankings.get_prioritized_tests())
          print(
              f"Heuristic {heuristic} identified {num_tests_found} tests "
              + f"to prioritize ({(num_tests_found / len(tests)):.2%}%)",
              file=file,
          )
  
          if num_tests_found:
              print(new_rankings.get_info_str(), file=file)
  
      return aggregated_results
  
imports: import sys
  from typing import Any, Dict, List
  from tools.testing.target_determination.heuristics import AggregatedHeuristics, HEURISTICS, TestPrioritizations
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_prioritizations(tests, file) and returns: aggregated_results