def get_attribute_by_name(node, attr_name):
    """Get attribute proto with specific name in the given node proto.

    :param node: the node proto.\\
    :param attr_name: a str for the name of the target.\\
    :return: if found, return the attribute_proto. Else, return None.
    """
    for attr in node.attribute:
        if attr.name == attr_name:
            return attr
    return None