<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def undo_action_name(self):
 """ The name of the top group on the undo stack, or an empty string. """

        if self._open:
            return self._open[-1].name
        elif self._undo:
            return self._undo[-1].name
        return ""