def to_video_event(temporal_detection, name=None, extra_attrs=True):
    """Returns an ``eta.core.events.VideoEvent`` representation of the given
    :class:`fiftyone.core.labels.TemporalDetection`.

    Args:
        temporal_detection: a :class:`fiftyone.core.labels.TemporalDetection`
        name (None): the name of the label field
        extra_attrs (True): whether to include custom attributes in the
            conversion

    Returns:
        an ``eta.core.events.VideoEvent``
    """
    support = etafu.FrameRanges.build_simple(*temporal_detection.support)
    attrs = _to_eta_attributes(temporal_detection, extra_attrs=extra_attrs)

    return etae.VideoEvent(
        label=temporal_detection.label,
        confidence=temporal_detection.confidence,
        name=name,
        support=support,
        attrs=attrs,
        tags=temporal_detection.tags,
    )
Returns an ``eta.core.events.VideoEvent`` representation of the given
    :class:`fiftyone.core.labels.TemporalDetection`.

    Args:
        temporal_detection: a :class:`fiftyone.core.labels.TemporalDetection`
        name (None): the name of the label field
        extra_attrs (True): whether to include custom attributes in the
            conversion

    Returns:
        an ``eta.core.events.VideoEvent``
    
fiftyone/utils/eta.py