<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _advance_frame(self):
 """ Sets `self.current_frame` to the next frame, looping to the beginning if needed. """

        self.current_frame += 1
        if self.current_frame == self.frame_len:
            self.current_frame = 0