<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def are_labels_overlapping(label1, label2):
 """ non-overlap cases |---------| lbl1 |--------| lbl2 |---------| lbl1 |---------| lbl2 :param label1: :param label2: :return: """


        if (
                                label2.start_seconds > label1.end_seconds and
                                label2.start_seconds > label1.start_seconds and
                                label2.end_seconds > label1.start_seconds and
                                label2.end_seconds > label1.start_seconds) or (
                                label2.start_seconds < label1.start_seconds and
                                label2.end_seconds < label1.start_seconds and
                                label2.start_seconds < label1.end_seconds and
                                label2.end_seconds < label1.end_seconds):
            return False
        else:
            return True