code: def subgraph(G, nbunch):
      """Returns the subgraph induced on nodes in nbunch.
  
      Parameters
      ----------
      G : graph
         A NetworkX graph
  
      nbunch : list, iterable
         A container of nodes that will be iterated through once (thus
         it should be an iterator or be iterable).  Each element of the
         container should be a valid node type: any hashable type except
         None.  If nbunch is None, return all edges data in the graph.
         Nodes in nbunch that are not in the graph will be (quietly)
         ignored.
  
      Notes
      -----
      subgraph(G) calls G.subgraph()
      """
      return G.subgraph(nbunch)
  
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 16 for calling a global function with example usage: subgraph(G, nbunch) and returns: G