<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose edge set is [(1, 2)] and which also includes an isolated node 3 with no edges, can you determine if node 2 is an isolate and if node 3 is an isolate using NetworkX?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edge(1, 2)
G.add_node(3)

# Check if node 2 is an isolate
is_node_2_isolate = nx.is_isolate(G, 2)
print('Is node 2 an isolate?', is_node_2_isolate)

# Check if node 3 is an isolate
is_node_3_isolate = nx.is_isolate(G, 3)
print('Is node 3 an isolate?', is_node_3_isolate)
<|EOT|>
