code: def print_test_by_type(
      tests: TestList,
      test_set_by_type: Set[str],
      type_name: str,
      summary_file: IO[str],
  ) -> None:
      print(
          "Tests " + type_name + " to collect coverage:",
          file=summary_file,
      )
      for test in tests:
          if is_this_type_of_tests(test.name, test_set_by_type):
              print(test.target_pattern, file=summary_file)
      print(file=summary_file)
  
file_path: pytorch/tools/code_coverage/package/tool/print_report.py
imports: import os
  import subprocess
  from typing import Dict, IO, List, Set, Tuple
  from ..oss.utils import get_pytorch_folder
  from ..util.setting import SUMMARY_FOLDER_DIR, TestList, TestStatusType
label_desc: Use image node_id 5 for calling a global function with example usage: print_test_by_type(tests, test_set_by_type, type_name, summary_file) without return types