code: def check_csv(model: str):
      """Check if csv files are generated"""
      for device in ["gpu", "cpu"]:
          assert Path(
              "runs", f"{model}_{device}.csv"
          ).exists(), f"Benchmarking script didn't generate csv logs for {model}"
  
file_path: anomalib/tests/nightly/tools/benchmarking/test_benchmarking.py
imports: import sys
  from importlib.util import find_spec
  from pathlib import Path
  from omegaconf import OmegaConf
  from tests.helpers.dataset import get_dataset_path
label_desc: Use image node_id 2 for calling a global function with example usage: check_csv(model) without return types