def draw_label_path(context, width, height, arrow_height, distance_to_port,
    port_offset):
    """Draws the path for an upright label

    :param context: The Cairo context
    :param float width: Width of the label
    :param float height: Height of the label
    :param float distance_to_port: Distance to the port related to the label
    :param float port_offset: Distance from the port center to its border
    :param bool draw_connection_to_port: Whether to draw a line from the tip of the label to the port
    """
    c = context
    c.rel_move_to(0, port_offset)
    c.rel_line_to(0, distance_to_port)
    c.rel_line_to(-width / 2.0, arrow_height)
    c.rel_line_to(0, height - arrow_height)
    c.rel_line_to(width, 0)
    c.rel_line_to(0, -(height - arrow_height))
    c.rel_line_to(-width / 2.0, -arrow_height)
    c.close_path()
