<｜begin▁of▁sentence｜>### Instruction:
As an Energy Auditor who assesses energy usage and efficiency in buildings, you've been tasked with optimizing the lighting system in a newly constructed office building. One aspect of your assessment involves examining the electrical wiring layout, represented as a path graph with 5 nodes. To analyze the connections effectively, you need to employ the consecutive_pairs utility function from NetworkX. Could you utilize this function to list all consecutive pairs of nodes in the graph, aiding in your evaluation of the lighting system's efficiency?
### Response:
import networkx as nx

# Using consecutive_pairs from networkx
# Create a path graph with 5 nodes
g = nx.path_graph(5)
# Get the nodes of the graph in order
nodes = list(g.nodes)
# Use the consecutive_pairs utility to print pairs
for pair in nx.utils.consecutive_pairs(nodes):
    print(pair)
<|EOT|>
