<｜begin▁of▁sentence｜>### Instruction:
Using NetworkX, given a directed path graph with 5 nodes created in a sequence from 0 to 4, how can you determine all nodes that are reachable from the node with label 2?
### Response:
import networkx as nx
DG = nx.path_graph(5, create_using=nx.DiGraph)
descendants_of_2 = sorted(nx.descendants(DG, 2))
print('Descendants of node 2:', descendants_of_2)
<|EOT|>
