code: def nodes(G):
      """Returns a NodeView over the graph nodes.
  
      This function wraps the :func:`G.nodes <networkx.Graph.nodes>` property.
      """
      return G.nodes()
  
imports: from collections import Counter
  from itertools import chain
  import networkx
  from networkx.utils import not_implemented_for, pairwise
label_desc: Use image node_id 1 for calling a global function with example usage: nodes(G) and returns: G