<｜begin▁of▁sentence｜>### Instruction:
Imagine you're tracking the migratory path of a particular bird species, and you've mapped out five critical stopover habitats they use during their annual journey. Each habitat is like a stepping stone, creating a natural sequence in the landscape. Now, suppose you want to share this migratory pathway information with a network of fellow wildlife biologists in a format that's both comprehensive and easy to integrate into various data analysis tools. Could you transform this ecological chain into a digital GEXF file using NetworkX? This will allow your peers to visualize and study the connectivity of these habitats. The GEXF document should be neatly structured (prettyprinted) and adhere to the typical UTF-8 text encoding. For reference, let's name this GEXF file "migratory_path.gexf" which is a representation of the pathway connecting the five habitats akin to a linear sequence of nodes in a graph.
### Response:
import networkx as nx

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

# Generate GEXF format representation of the graph
for line in nx.generate_gexf(G):
    print(line)
<|EOT|>
