Checks a list of annotations for those that are overlapping in the time or frequency domain, and returns a list where overlapping annotations are merged.
Details
The exported function merge_annotations()
handles sanity checks and calls this function.