<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_mark(self):
 """Mark the current location and return its id so that the buffer can return later."""

        self._bookmarks.append(self._offset)
        return len(self._bookmarks) - 1