code: def is_terminal(self) -> bool:
          
          for resp in self._untagged:
              if resp.is_terminal:
                  return True
          return False
docs: True if the response contained an untagged ``BYE`` response
          indicating that the session should be terminated.