<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_shared_nodes(G1: nx.DiGraph, G2: nx.DiGraph) -> List[str]: """Get all the nodes that are common to both networks."""

    return list(set(G1.nodes()).intersection(set(G2.nodes())))