<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _peek(self, *types):
 """Returns the token type for lookahead; if there are any args then the list of args is the set of token types to allow"""

        tok = self._scanner.token(self._pos, types)
        return tok[2]