def last(self):
        """Returns the last :class:`Frame` for the sample.

        Returns:
            a :class:`Frame`
        """
        frame_numbers = self._get_frame_numbers()
        if frame_numbers:
            return self[max(frame_numbers)]

        id_str = " '%s'" % self._sample.id if self._sample.id else ""
        raise ValueError("Sample%s has no frame labels" % id_str)
Returns the last :class:`Frame` for the sample.

        Returns:
            a :class:`Frame`
        
fiftyone/core/frame.py