def no_duplicate_tweets(tweets):
    """Returns True iff tweets in input list are all unique."""
    ids = set()
    for tweet in tweets:
        tweet_id = tweet.GetId()
        if tweet_id in ids:
            return False
        ids.add(tweet_id)
    return True