<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 4 nodes, can you provide code to position the nodes using shell_layout in NetworkX, with the first node in its own shell and the remaining nodes in a second shell?
### Response:
import networkx as nx
# Create a graph G
G = nx.path_graph(4)
# Define shells
shells = [[0], [1, 2, 3]]
# Use shell_layout to position nodes
pos = nx.shell_layout(G, shells)
print(pos)
<|EOT|>
