<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_input_nodes(G: nx.DiGraph) -> List[str]: """ Get all input nodes from a network. """

    return [n for n, d in G.in_degree() if d == 0]