code: def assert_same_sampling_len(
      dgl_g, cugraph_gs, nodes, fanout, edge_dir
  ):
      dgl_o = dgl_g.sample_neighbors(
          nodes, fanout=fanout, edge_dir=edge_dir
      )
      cugraph_o = cugraph_gs.sample_neighbors(
          nodes, fanout=fanout, edge_dir=edge_dir
      )
      assert cugraph_o.num_edges() == dgl_o.num_edges()
      for etype in dgl_o.canonical_etypes:
          assert dgl_o.num_edges(etype) == cugraph_o.num_edges(etype)
  
imports: from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 6 for calling a global function with example usage: assert_same_sampling_len(dgl_g, cugraph_gs, nodes, fanout, edge_dir) without return types