def overlaps(bounds_A, bounds_B):
    """Returns True if bounds_A and bounds_B partially overlap."""
    x1_min, y1_min, x1_max, y1_max = bounds_A
    x2_min, y2_min, x2_max, y2_max = bounds_B
    x_overlaps = (x1_min <= x2_min <= x1_max) or (x2_min <= x1_min <= x2_max)
    y_overlaps = (y1_min <= y2_min <= y1_max) or (y2_min <= y1_min <= y2_max)
    return x_overlaps and y_overlaps