<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getGestureAndSegments(points):
 """ Returns a list of tuples. The first item in the tuple is the directional integer, and the second item is a tuple of integers for the start and end indexes of the points that make up the stroke. """

    strokes, strokeSegments = _identifyStrokes(points)
    return list(zip(strokes, strokeSegments))