def return_score_dict(data, scores, bounding_box=None, label=None):
    """
    Returns a dict containing the essential video information and the corresponding scores.
    :param data:
    :param scores:
    :param bounding_box:
    :param label
    :return:
    """
    assert data['data_size'] == len(scores), 'Size of scores mismatch.'

    dict_scores = dict()
    dict_scores['data_size'] = data['data_size']
    dict_scores['num_frames'] = data['num_frames']
    dict_scores['frame_index'] = data['frame_index']
    dict_scores['scores'] = scores
    if bounding_box is not None:
        dict_scores['bounding_box'] = data['bounding_box']
    if label is not None:
        dict_scores['label'] = data['label']
    return dict_scores