code: def test_get_test_stats_gets_rank_for_test_classes(self) -> None:
      self.maxDiff = None
      tests = ["test1", "test2", "test3", "test4", "test5"]
      heuristic1 = TestPrioritizations(
          tests_being_ranked=tests,
          high_relevance=["test3", "test4"],
      )
      heuristic2 = TestPrioritizations(
          tests_being_ranked=tests,
          probable_relevance=["test5::classA"],
      )
  
      aggregator = AggregatedHeuristics(unranked_tests=tests)
      aggregator.add_heuristic_results(HEURISTICS[0], heuristic1)
      aggregator.add_heuristic_results(HEURISTICS[1], heuristic2)
  
      statsInclusive = aggregator.get_test_stats(
          TestRun("test5", included=["classA"])
      )
      statsExclusive = aggregator.get_test_stats(
          TestRun("test5", excluded=["classA"])
      )
  
      print("h")
      # Validate the heuristic level stats are correct
      self.assertEqual(
          statsInclusive["heuristics"][1][
              "order_within_relevance_group"
          ],
          0,
      )
      self.assertEqual(
          statsInclusive["heuristics"][1][
              "num_tests_in_relevance_group"
          ],
          1,
      )
      self.assertEqual(
          statsInclusive["heuristics"][1]["order_overall"], 0
      )
      self.assertEqual(
          statsInclusive["heuristics"][1]["relevance_group"], "PROBABLE"
      )
      self.assertEqual(statsInclusive["aggregated"]["order_overall"], 2)
  
      self.assertEqual(
          statsExclusive["heuristics"][1][
              "order_within_relevance_group"
          ],
          4,
      )
      self.assertEqual(
          statsExclusive["heuristics"][1][
              "num_tests_in_relevance_group"
          ],
          5,
      )
      self.assertEqual(
          statsExclusive["heuristics"][1]["order_overall"], 5
      )
      self.assertEqual(
          statsExclusive["heuristics"][1]["relevance_group"], "UNRANKED"
      )
      self.assertEqual(statsExclusive["aggregated"]["order_overall"], 5)
  
imports: import io
  import json
  import pathlib
  import sys
  import unittest
  from typing import Any, Dict, Set
  from unittest import mock
label_desc: Use image node_id 6 for calling the TestAggregatedHeuristics obj's underlying member method code with example usage: obj.test_get_test_stats_gets_rank_for_test_classes() without return types