def node_by_id(items: list, id):
    """
    Finds a dictionary with the id provided
    """
    for item in items:
        if str(item["id"]) == str(id):
            return item

    raise KeyError(f"ID '{id}' not found in list")