def GetDomainUser(self, user_email):
    """Retrieve document for a user in an apps domain.

    A common reason to call this is to retrieve the user_id from an email name.

    Args:
      user_email: username to check.

    Returns:
      The user document (available fields listed in _PrintOneUser()).

    Raises:
      APIToolDirectoryUserError: An error retrieving the user. An
                                       example of this is attempting to list
                                       a user from another apps domain.
    """
    request = self._users.get(userKey=user_email)
    try:
      return request.execute()
    except apiclient.errors.HttpError as e:  # Missing user raises HttpError.
      if e.resp.status == 404:
        print 'User %s not found.' % user_email
        if user_email not in '@':
          print 'The user_email should be formatted as user@domain.com.'
        sys.exit(1)
      error_text = http_utils.ParseHttpResult(e.uri, e.resp, e.content)
      raise APIToolDirectoryUserError(error_text)
dataset/ETHPy150Open google/gfw-toolkit/api_sample/usertool.py/UserDirectory.GetDomainUser/swapped operands of `not in`