def return_data_dict(data_dict, data_size, num_frames=None, frame_index=None, bounding_box=None, label=None):
    """
    Returns a dict containing all given data.
    :param data_dict:
    :param data_size:
    :param num_frames:
    :param frame_index:
    :param bounding_box:
    :param label:
    :return:
    """
    dict_subset = dict()
    dict_subset['data'] = data_dict
    dict_subset['data_size'] = data_size
    if num_frames is not None:
        dict_subset['num_frames'] = num_frames
    if frame_index is not None:
        dict_subset['frame_index'] = frame_index
    if bounding_box is not None:
        dict_subset['bounding_box'] = bounding_box
    if label is not None:
        dict_subset['label'] = label
    return dict_subset