code: def check_tb_logs(model: str):
      """check if TensorBoard logs are generated."""
      for device in ["gpu", "cpu"]:
          assert (
              len(
                  list(
                      Path("runs", f"{model}_{device}").glob(
                          "events.out.tfevents.*"
                      )
                  )
              )
              > 0
          ), f"Benchmarking script didn't generate tensorboard 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 1 for calling a global function with example usage: check_tb_logs(model) without return types