class_docstr: Pre-processor for Ava Actions Dataset stored as image frames -
      `<https://research.google.com/ava/download.html>_`
  This class handles the parsing of all the necessary
  csv files containing frame paths and frame labels.
class_docstr_tok: ["Pre-processor","for","Ava","Actions","Dataset","stored","as","image","frames","-","`","<","https",":","\/\/research.google.com\/ava\/download.html",">","_","`","This","class","handles","the","parsing","of","all","the","necessary","csv","files","containing","frame","paths","and","frame","labels","."]
code: def _aggregate_bboxes_labels(cls, inp: Dict):
      # Needed for aggregating the bounding boxes
      labels = inp["labels"]
      extra_info = inp["extra_info"]
      boxes = inp["boxes"]
  
      labels_agg = []
      extra_info_agg = []
      boxes_agg = []
      bb_dict = {}
  
      for i in range(len(labels)):
          box_label, box_extra_info = labels[i], extra_info[i]
  
          bbox_key = "{:.2f},{:.2f},{:.2f},{:.2f}".format(
              boxes[i][0], boxes[i][1], boxes[i][2], boxes[i][3]
          )
  
          if bbox_key not in bb_dict:
              bb_dict[bbox_key] = len(boxes_agg)
              boxes_agg.append(boxes[i])
              labels_agg.append([])
              extra_info_agg.append([])
  
          idx = bb_dict[bbox_key]
          labels_agg[idx].append(box_label)
          extra_info_agg[idx].append(box_extra_info)
  
      return {
          "labels": labels_agg,
          "boxes": boxes_agg,
          "extra_info": extra_info_agg,
      }
  
file_path: pytorchvideo/pytorchvideo/data/ava.py
imports: from __future__ import annotations
  import os
  from collections import defaultdict
  from typing import Any, Callable, Dict, Optional, Set, Tuple, Type
  import torch
  from iopath.common.file_io import g_pathmgr
  from pytorchvideo.data.clip_sampling import ClipInfo, ClipSampler
  from pytorchvideo.data.labeled_video_dataset import LabeledVideoDataset
label_desc: Use image node_id 1 for calling the AvaLabeledVideoFramePaths obj's underlying member method code with example usage: obj._aggregate_bboxes_labels(cls, inp) and returns: dict