<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_frame(self, idx):
 """Return the frame number of a contour"""

        cont = self.data[idx]
        frame = int(cont.strip().split(" ", 1)[0])
        return frame