def METHOD_NAME(self, video_infos: dict,
                 sampled_inds: List[int]) -> Dict[str, List]:
    """Prepare data for the subsequent pipeline.
    Args:
        video_infos (dict): The whole video information.
        sampled_inds (list[int]): The sampled frame indices.
    Returns:
        dict: The processed data information.
    """
    frames_anns = video_infos['images']
    final_data_info = defaultdict(list)
    # for data in frames_anns:
    for index in sampled_inds:
        data = frames_anns[index]
        # copy the info in video-level into img-level
        for key in self.collect_video_keys:
            if key == 'video_length':
                data['ori_video_length'] = video_infos[key]
                data['video_length'] = len(sampled_inds)
            else:
                data[key] = video_infos[key]
        # Collate data_list (list of dict to dict of list)
        for key, value in data.items():
            final_data_info[key].append(value)
    return final_data_info