<｜begin▁of▁sentence｜>### Instruction:
In the lab, we often visualize chemical pathways as linear sequences, akin to a path graph with discrete stages or nodes, each representing a step in a reaction or process. Let's say we have such a sequence comprised of 4 distinct stages. To ensure that our colleagues can replicate our setup, we're interested in documenting this pathway. Could you please take on the task of transcribing our 4-stage linear chemical pathway into a file that chronicles the connections between each node in a multiline adjacency list format, leveraging NetworkX for this purpose? If the file is saved in the GML format, please name it "chemical_pathway.gml" so it's easily identifiable for our team.
### Response:
import networkx as nx
# Create a path graph with 4 nodes
G = nx.path_graph(4)
# Write the graph to a multiline adjacency list file
nx.write_multiline_adjlist(G, "path_graph.adjlist")
<|EOT|>
