<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drawPolyline(page, points, color=None, fill=None, dashes=None, width=1, morph=None, roundCap=False, overlay=True, closePath=False):
 """Draw multiple connected line segments. """

    img = page.newShape()
    Q = img.drawPolyline(points)
    img.finish(color=color, fill=fill, dashes=dashes, width=width,
               roundCap=roundCap, morph=morph, closePath=closePath)
    img.commit(overlay)

    return Q