def filter_event_list(event_list, scene_label=None, event_label=None, filename=None):
    """Filter event list based on given fields

    Parameters
    ----------
    event_list : list, shape=(n,)
        A list containing event dicts

    scene_label : str
        Scene label

    event_label : str
        Event label

    filename : str
        Filename

    Returns
    -------
    event_list: list, shape=(n,)
        A list containing event dicts

    """

    return dcase_util.containers.MetaDataContainer(event_list).filter(
        filename=filename,
        scene_label=scene_label,
        event_label=event_label
    )
Filter event list based on given fields

    Parameters
    ----------
    event_list : list, shape=(n,)
        A list containing event dicts

    scene_label : str
        Scene label

    event_label : str
        Event label

    filename : str
        Filename

    Returns
    -------
    event_list: list, shape=(n,)
        A list containing event dicts