def from_polyline(polyline):
    """Creates a :class:`fiftyone.core.labels.Polyline` from an
    ``eta.core.polylines.Polyline``.

    Args:
        polyline: an ``eta.core.polylines.Polyline``

    Returns:
        a :class:`fiftyone.core.labels.Polyline`
    """
    attributes = _from_eta_attributes(polyline.attrs)

    return fol.Polyline(
        label=polyline.label,
        points=polyline.points,
        confidence=polyline.confidence,
        index=polyline.index,
        closed=polyline.closed,
        filled=polyline.filled,
        tags=polyline.tags,
        **attributes,
    )
Creates a :class:`fiftyone.core.labels.Polyline` from an
    ``eta.core.polylines.Polyline``.

    Args:
        polyline: an ``eta.core.polylines.Polyline``

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