<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 5 nodes, can you compute the harmonic centrality for each node using NetworkX?
### Response:
import networkx as nx

# Create a graph
G = nx.path_graph(5)

# Compute harmonic centrality
h_centrality = nx.harmonic_centrality(G)

# Print the harmonic centrality of each node
for node, centrality in h_centrality.items():
    print(f'Node {node}: Harmonic Centrality = {centrality}')
<|EOT|>
