code: def should_exclude_file(filename) -> bool:
      for exclude_suffix in exclude_files:
          if filename.endswith(exclude_suffix):
              return True
      return False
  
file_path: pytorch/torch/testing/_internal/check_kernel_launches.py
imports: import os
  import re
  import sys
  from typing import List
label_desc: Use image node_id 2 for calling a global function with example usage: should_exclude_file(filename) and returns: False, True