def has_token_in_position(node, token, pos):
    """Has the node the specified token in specified position
    (indexed from 0)?
    """
    tokens = list(node.get_tokens())
    return tokens[pos].spelling == token