@staticmethod
def _segments_overlap(seg_a, seg_b):
    """Compute if two segments overlap.

        Returns:
            True iff the input ranges overlap at at least one index.

        """
    if not seg_a or not seg_b:
        return False
    first = seg_a
    second = seg_b
    if seg_b.start < seg_a.start:
        first, second = seg_b, seg_a
    assert first.start <= second.start
    return first.stop >= second.start
