<｜begin▁of▁sentence｜>### Instruction:
As a work-from-home freelancer tasked with analyzing the flow of communication within a project team's network, you've been provided with a dataset defining the team's reporting structure. The dataset outlines the direction of supervision and information transfer with the following relationships: Team Member 1 reports to Team Member 2, who in turn reports to Team Member 3, with the chain continuing on to Team Member 4, and finally to Team Member 5.

The client has asked for your expertise to identify if an uninterrupted line of communication can be theoretically established from Team Member 1 all the way to Team Member 5 within this hierarchy. Essentially, they are looking for your insight into whether a discussion, query, or command initiated by Team Member 1 can be expected to reach Team Member 5 without obstruction, given the direct reporting structure outlined in the data provided.
### Response:
import networkx as nx

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

# Check if there's a path from node 1 to node 5
path_exists = nx.has_path(G, source=1, target=5)
print('Path exists from node 1 to node 5:', path_exists)
<|EOT|>
