code: def is_cover(G, node_cover):
      return all({u, v} & node_cover for u, v in G.edges())
  
file_path: networkx/networkx/algorithms/approximation/tests/test_vertex_cover.py
imports: import networkx
  from networkx.algorithms.approximation import min_weighted_vertex_cover
label_desc: Use image node_id 1 for calling a global function with example usage: is_cover(G, node_cover) and returns: all