def _rectangles_overlap(bottomleft_1, topright_1, bottomleft_2, topright_2):
    """Compare two rectangles and return True if they are overlapping.

    Parameters
    ----------
    bottomleft_1 : listlike, float
        x, y coordinate of bottom left corner of rectangle 1.
    topright_1 : listlike, float
        x, y coordinate of top right corner of rectangle 1.
    bottomleft_2 : listlike, float
        x, y coordinate of bottom left corner of rectangle 2.
    topright_2 : listlike, float
        x, y coordinate of top right corner of rectangle 2.

    Returns
    -------
    boolean
        True if rectangles are overlapping, False if they do not overlap.
    """
    # check if bottom_left_1 is above top_right_2
    if bottomleft_1[1] > topright_2[1]:
        return False
    # check if bottom_left_2 is above top_right_1
    elif bottomleft_2[1] > topright_1[1]:
        return False
    # check if top_right_1 is to the left of bottom_left_2
    elif topright_1[0] < bottomleft_2[0]:
        return False
    # check if top_right_2 is to the left of bottom_left_1
    elif topright_2[0] < bottomleft_1[0]:
        return False
    # else, rectangles are overlapping
    else:
        return True