code: def main():
      args = parse_args()
      cfg = retrieve_data_cfg(args.config, args.skip_type)
  
      dataset = build_dataset(cfg.data.train)
  
      progress_bar = mmcv.ProgressBar(len(dataset))
      for item in dataset:
          filename = (
              os.path.join(args.output_dir, Path(item["filename"]).name)
              if args.output_dir is not None
              else None
          )
          mmcv.imshow_det_bboxes(
              item["img"],
              item["gt_bboxes"],
              item["gt_labels"],
              class_names=dataset.CLASSES,
              show=not args.not_show,
              out_file=filename,
              wait_time=args.show_interval,
          )
          progress_bar.update()
  
file_path: insightface/detection/scrfd/tools/browse_dataset.py
imports: import argparse
  import os
  from pathlib import Path
  import mmcv
  from mmcv import Config
  from mmdet.datasets.builder import build_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types