code: def assert_same_num_nodes(gs, g):
      for ntype in g.ntypes:
          assert g.num_nodes(ntype) == gs.num_nodes(ntype)
  
imports: from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 2 for calling a global function with example usage: assert_same_num_nodes(gs, g) without return types