def from_segments( segments: Iterable[SupervisionSegment]) -> 'SupervisionSet': return SupervisionSet(segments=index_by_id_and_check(segments))
def from_recordings(recordings: Iterable[Recording]) -> 'RecordingSet': return RecordingSet(recordings=index_by_id_and_check(recordings))