code: def neighbors(G, n):
      """Returns an iterator over all neighbors of node n.
  
      This function wraps the :func:`G.neighbors <networkx.Graph.neighbors>` function.
      """
      return G.neighbors(n)
  
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 4 for calling a global function with example usage: neighbors(G, n) and returns: G