<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_terminal(self) -> bool: """True if the response contained an untagged ``BYE`` response indicating that the session should be terminated. """

        for resp in self._untagged:
            if resp.is_terminal:
                return True
        return False