code: def display_result(
      self, tests: TestTuple, quiet: bool, print_slowest: bool
  ):
      if print_slowest:
          self.test_times.sort(reverse=True)
          print()
          print("10 slowest tests:")
          for test_time, test in self.test_times[:10]:
              print("- %s: %s" % (test, format_duration(test_time)))
  
      all_tests = []
      omitted = set(tests) - self.get_executed()
  
      # less important
      all_tests.append((omitted, "test", "{} omitted:"))
      if not quiet:
          all_tests.append((self.skipped, "test", "{} skipped:"))
          all_tests.append(
              (
                  self.resource_denied,
                  "test",
                  "{} skipped (resource denied):",
              )
          )
      all_tests.append((self.run_no_tests, "test", "{} run no tests:"))
  
      # more important
      all_tests.append(
          (
              self.env_changed,
              "test",
              "{} altered the execution environment (env changed):",
          )
      )
      all_tests.append((self.rerun, "re-run test", "{}:"))
      all_tests.append((self.bad, "test", "{} failed:"))
  
      for tests_list, count_text, title_format in all_tests:
          if tests_list:
              print()
              count_text = count(len(tests_list), count_text)
              print(title_format.format(count_text))
              printlist(tests_list)
  
      if self.good and not quiet:
          print()
          text = count(len(self.good), "test")
          text = f"{text} OK."
          if self.is_all_good() and len(self.good) > 1:
              text = f"All {text}"
          print(text)
  
      if self.interrupted:
          print()
          print("Test suite interrupted by signal SIGINT.")
  
file_path: cpython/Lib/test/libregrtest/results.py
imports: import sys
  import trace
  from .runtests import RunTests
  from .result import State, TestResult, TestStats, Location
  from .utils import StrPath, TestName, TestTuple, TestList, FilterDict, printlist, count, format_duration
label_desc: Use image node_id 13 for calling the TestResults obj's underlying member method code with example usage: obj.display_result(tests, quiet, print_slowest) without return types