class_docstr: Describes the results of whether heuristics consider a test relevant or not.
  
  All the different ranks of tests are disjoint, meaning a test can only be in one category, and they are only
  declared at initialization time.
  
  A list can be empty if a heuristic doesn't consider any tests to be in that category.
  
  Important: Lists of tests must always be returned in a deterministic order,
             otherwise it breaks the test sharding logic
class_docstr_tok: ["Describes","the","results","of","whether","heuristics","consider","a","test","relevant","or","not",".","All","the","different","ranks","of","tests","are","disjoint",",","meaning","a","test","can","only","be","in","one","category",",","and","they","are","only","declared","at","initialization","time",".","A","list","can","be","empty","if","a","heuristic","does","n't","consider","any","tests","to","be","in","that","category",".","Important",":","Lists","of","tests","must","always","be","returned","in","a","deterministic","order",",","otherwise","it","breaks","the","test","sharding","logic"]
code: def get_info_str(self) -> str:
      info = ""
  
      def _test_info(label: str, tests: List[TestRun]) -> str:
          if not tests:
              return ""
  
          s = f"{label} tests ({len(tests)}):\n"
          for test in tests:
              if test in tests:
                  s += f"  {test}\n"
          return s
  
      for relevance_group, tests in self._traverse_priorities():
          if relevance_group == Relevance.UNRANKED:
              continue
          info += _test_info(
              f"{Relevance(relevance_group).name.title()} Relevance",
              tests,
          )
  
      return info.strip()
  
imports: import operator
  import sys
  from abc import abstractmethod
  from copy import copy
  from enum import Enum
  from functools import total_ordering
  from itertools import chain
  from typing import Any, Callable, Dict, FrozenSet, Iterable, Iterator, List, Optional, Tuple
  from tools.testing.test_run import TestRun, TestRuns
label_desc: Use image node_id 16 for calling the TestPrioritizations obj's underlying member method code with example usage: obj.get_info_str() and returns: info, s, str