<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GetPattern(self):
 """Return a tuple of Stop objects, in the order visited"""

    stoptimes = self.GetStopTimes()
    return tuple(st.stop for st in stoptimes)