code: def test_multigraph_sssp(graph_file):
      # FIXME: Migrate to new test fixtures for Graph setup once available
      G = graph_file.get_graph(
          create_using=cugraph.MultiGraph(directed=True)
      )
      cu_paths = cugraph.sssp(G, 0)
      max_val = np.finfo(cu_paths["distance"].dtype).max
      cu_paths = cu_paths[cu_paths["distance"] != max_val]
      dataset_path = graph_file.get_path()
      nxM = utils.read_csv_for_nx(dataset_path, read_weights_in_sp=True)
      Gnx = nx.from_pandas_edgelist(
          nxM,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.MultiDiGraph(),
      )
      nx_paths = nx.single_source_dijkstra_path_length(Gnx, 0)
  
      cu_dist = cu_paths.sort_values(by="vertex")["distance"].to_numpy()
      nx_dist = [i[1] for i in sorted(nx_paths.items())]
  
      assert (cu_dist == nx_dist).all()
  
file_path: cugraph/python/cugraph/cugraph/tests/structure/test_multigraph.py
imports: import gc
  import pytest
  import numpy
  import networkx
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
label_desc: Use image node_id 4 for calling a global function with example usage: test_multigraph_sssp(graph_file) without return types