<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_node_attributes(G: nx.DiGraph, attributes: Union[str, Iterable[str]]):
 """ Return a copy of the graph with the given attributes deleted from all nodes. """

    G = G.copy()
    for _, data in G.nodes(data=True):
        for attribute in setwrap(attributes):
            if attribute in data:
                del data[attribute]
    return G