code: def number_of_edges(G):
      """Returns the number of edges in the graph.
  
      This function wraps the :func:`G.number_of_edges <networkx.Graph.number_of_edges>` function.
      """
      return G.number_of_edges()
  
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 6 for calling a global function with example usage: number_of_edges(G) and returns: G