def _find_node_by_name(nodes, name):
    """
    Loop through a list of nodes and return the one which has the matching display name
    :param nodes: List of nodes
    :param name: Target name
    :return: Matching node, None otherwise
    """
    # Nodes always have unique names, thus there's no need for duplicate check
    for node in nodes:
        if name == node['displayName']:
            return node
    return None