def from_video_event(video_event):
    """Creates a :class:`fiftyone.core.labels.TemporalDetection` from an
    ``eta.core.events.VideoEvent``.

    Args:
        video_event: an ``eta.core.events.VideoEvent``

    Returns:
        a :class:`fiftyone.core.labels.TemporalDetection`
    """
    if video_event.support:
        support = list(video_event.support.limits)
    else:
        support = None

    attributes = _from_eta_attributes(video_event.attrs)

    return fol.TemporalDetection(
        label=video_event.label,
        support=support,
        confidence=video_event.confidence,
        tags=video_event.tags,
        **attributes,
    )
Creates a :class:`fiftyone.core.labels.TemporalDetection` from an
    ``eta.core.events.VideoEvent``.

    Args:
        video_event: an ``eta.core.events.VideoEvent``

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