<｜begin▁of▁sentence｜>### Instruction:
Given a graph with nodes [1, 2, 3, 4] and edges [(1, 2), (1, 3), (1, 4), (2, 3), (3, 4)], how can we create a view that filters out a specific node (for example node 2) along with its data using NetworkX's FilterAtlas?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edges_from([(1, 2), (1, 3), (1, 4), (2, 3), (3, 4)])

# Define a filter function
filter_func = lambda node: node != 2

# Create a FilterAtlas view of the graph's node data
filtered_nodes = nx.classes.coreviews.FilterAtlas(G._node, filter_func)

# Print the nodes in the FilterAtlas
for node in filtered_nodes:
    print(node, filtered_nodes[node])
<|EOT|>
