def has_tokens(node):
    """Has the node any tokens?"""
    # node.get_tokens() is a generator, so check if there is at least one
    # token (a token object always evaluates to True).
    return any(node.get_tokens())