code: def assert_same_num_edges_etypes(gs, g):
      for etype in g.etypes:
          assert g.num_edges(etype) == gs.num_edges(etype)
  
imports: from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 4 for calling a global function with example usage: assert_same_num_edges_etypes(gs, g) without return types