def from_video_events(video_events):
    """Creates a :class:`fiftyone.core.labels.TemporalDetections` from an
    ``eta.core.events.VideoEventContainer``.

    Args:
        video_events: an ``eta.core.events.VideoEventContainer``

    Returns:
        a :class:`fiftyone.core.labels.TemporalDetections`
    """
    return fol.TemporalDetections(
        detections=[from_video_event(e) for e in video_events]
    )
Creates a :class:`fiftyone.core.labels.TemporalDetections` from an
    ``eta.core.events.VideoEventContainer``.

    Args:
        video_events: an ``eta.core.events.VideoEventContainer``

    Returns:
        a :class:`fiftyone.core.labels.TemporalDetections`
    
fiftyone/utils/eta.py