code: def create_empty_copy(G, with_data=True):
      """Returns a copy of the graph G with all of the edges removed.
  
      Parameters
      ----------
      G : graph
         A NetworkX graph
  
      with_data :  bool (default=True)
         Propagate Graph and Nodes data to the new graph.
  
      See Also
      --------
      empty_graph
  
      """
      H = G.__class__()
      H.add_nodes_from(G.nodes(data=with_data))
      if with_data:
          H.graph.update(G.graph)
      return H
  
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 22 for calling a global function with example usage: create_empty_copy(G, with_data) and returns: H