code: def print_results(results, discovery_time, thresh, status):
      # only keep results >= threshold
      results = dict(filter(lambda x: x[1] > thresh, results.items()))
      if len(results) == 0:
          return
      print(
          f"\n\n{status}, printing completed times >{thresh}s in ascending order...\n"
      )
      timings = dict(sorted(results.items(), key=lambda item: item[1]))
  
      for r in timings:
          if timings[r] >= thresh:
              print(f"{r} ({timings[r]:.03}s)")
      print(f"test discovery time: {discovery_time:.03}s")
      print(f"total testing time: {sum(results.values()):.03}s")
      print("Remember to check above times for any errors!")
  
file_path: MONAI/tests/runner.py
imports: from __future__ import annotations
  import argparse
  import glob
  import inspect
  import os
  import re
  import sys
  import time
  import unittest
  from monai.utils import PerfContext
label_desc: Use image node_id 1 for calling a global function with example usage: print_results(results, discovery_time, thresh, status) without return types