code: def _k_edge_subgraphs_nodes(G, k):
      """Helper to get the nodes from the subgraphs.
  
      This allows k_edge_subgraphs to return a generator.
      """
      for C in general_k_edge_subgraphs(G, k):
          yield set(C.nodes())
  
file_path: networkx/networkx/algorithms/connectivity/edge_kcomponents.py
imports: import itertools
  from functools import partial
  import networkx
  from networkx.utils import arbitrary_element, not_implemented_for
label_desc: Use image node_id 3 for calling a global function with example usage: _k_edge_subgraphs_nodes(G, k) without return types