code: def check_files(paths: List[PurePath]) -> None:
      for p in paths:
          generated_path = p.parent / str(p).replace(
              GENERATE_SUFFIX, GENERATED_SUFFIX
          )
          print(f"INFO: Checking {generated_path}...")
          with temp_fname() as temp_file:
              generate_file(p, temp_file)
              format_file(temp_file)
              assert filecmp.cmp(
                  generated_path, temp_file
              ), f"expected: {open(temp_file).read()}"
  
file_path: wandb/tools/generate-tool.py
imports: import argparse
  import contextlib
  import filecmp
  import os
  import subprocess
  import tempfile
  from pathlib import Path, PurePath
  from typing import Iterator, List
label_desc: Use image node_id 7 for calling a global function with example usage: check_files(paths) without return types