def METHOD_NAME(range1, range2):
    if range1.max > range2.min:
        ##r.min < #previous_r.max
        return False
    if range2.min == range1.max and range1.isMaxInclusive and range2.isMinInclusive:
        # the inclusive ending endpoint of previous_r is the same as the inclusive beginning endpoint of r
        return False
    return True