def GetSessionIfAuthOK(self, token, require_level=None):
    session = self._session.GetToken(token)

    if not session:
      raise AuthSessionError('GetSessionIfAuthOK: session is None')
    elif session.state != AuthState.OK:
      raise AuthSessionError(
          'GetSessionIfAuthOK: state (%s) != OK', session.state)

    if require_level is not None and require_level > session.level:
      raise AuthSessionError(
          'GetSessionIfAuthOK: require_level (%s) session level (%s)',
          require_level, session.level)

    return session
Generator of arbitrary email addresses.
dataset/ETHPy150Open google/simian/src/simian/auth/base.py/Auth1.GetSessionIfAuthOK--crossover with--dataset/ETHPy150Open Xion/pyqcy/pyqcy/arbitraries/strings.py/email