<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def contains(self, token: str) -> bool: """Return if the token is in the list or not."""

        self._validate_token(token)
        return token in self