code: def build_test_set(directory):
      directory = Path(directory)
      subdir_to_skipped = {}
      subdirs = [
          item
          for item in os.listdir(directory)
          if os.path.isdir(os.path.join(directory, item))
      ]
      for subdir in subdirs:
          subdir_to_skipped[subdir] = set()
          for root, _, files in os.walk(directory / subdir):
              for file in files:
                  test_report = ElementTree.parse(Path(root) / file)
                  for testcase in test_report.iter("testcase"):
                      skipped = testcase.find("skipped")
                      if skipped is not None:
                          key = (
                              testcase.attrib["classname"]
                              + "#"
                              + testcase.attrib["name"]
                          )
                          subdir_to_skipped[subdir].add(key)
      return subdir_to_skipped
  
file_path: tvm/ci/scripts/github/github_skipped_tests_comment.py
imports: import inspect
  import json
  import os
  import logging
  import subprocess
  from xml.etree import ElementTree
  from pathlib import Path
  from typing import Dict, Any, Optional
label_desc: Use image node_id 7 for calling a global function with example usage: build_test_set(directory) and returns: subdir_to_skipped