librosa.util.
valid_intervals
Ensure that an array is a valid representation of time intervals:
intervals.ndim == 2 intervals.shape[1] == 2
set of time intervals
True if intervals passes validation.