<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_erase_frame(self):
 """Return a frame that completely erases the current frame, and then backs up. Assumes that the current frame is of constant width."""

        lines = self._current_frame.split('\n')
        width = len(lines[0])
        height = len(lines)
        line = ' ' * width
        if height == 1:
            frame = line + BACKSPACE * width
        else:
            frame = '\n'.join([line] * height) + BACKLINE * (height - 1)
        return frame