def from_keypoint(keypoints):
    """Creates a :class:`fiftyone.core.labels.Keypoint` from an
    ``eta.core.keypoints.Keypoints``.

    Args:
        keypoints: an ``eta.core.keypoints.Keypoints``

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

    return fol.Keypoint(
        label=keypoints.label,
        points=keypoints.points,
        confidence=keypoints.confidence,
        index=keypoints.index,
        tags=keypoints.tags,
        **attributes,
    )
Creates a :class:`fiftyone.core.labels.Keypoint` from an
    ``eta.core.keypoints.Keypoints``.

    Args:
        keypoints: an ``eta.core.keypoints.Keypoints``

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