def draw_vertical_lines(image, offset_rect):
    """Draw vertical lines above and below given rect.

    The lines are draw above and below the central vertical
    section of the given rect.

    Parameters
    ==========
    image (pygame.Surface instance)
        surface wherein to draw the lines.
    offset_rect (pygame.Rect instance)
        rect positioned relative to the given image's origin.
    """
    ### retrieve the top, centerx and bottom coordinates
    ### of the rect

    top, centerx, bottom = (
        getattr(offset_rect, attr_name) for attr_name in ("top", "centerx", "bottom")
    )

    ### iterate over values representing the starting and
    ### ending values of the y coordinate of the lines
    ### to be draw, drawing such lines

    for y_start, y_end in ((top - 1, top - 20), (bottom + 1, bottom + 20)):

        draw_line(image, ITEM_OUTLINE, (centerx, y_start), (centerx, y_end), 2)
Draw vertical lines above and below given rect.

    The lines are draw above and below the central vertical
    section of the given rect.

    Parameters
    ==========
    image (pygame.Surface instance)
        surface wherein to draw the lines.
    offset_rect (pygame.Rect instance)
        rect positioned relative to the given image's origin.
    
nodezator/our3rdlibs/sortingeditor/modes.py