code: def test_sssp_edgevals(
      gpubenchmark,
      dataset_source_goldenresults_weighted,
      cugraph_input_type,
  ):
      # Extract the params generated from the fixture
      (
          G,
          _,
          _,
          source,
          golden_paths,
      ) = dataset_source_goldenresults_weighted
      input_G_or_matrix = G
  
      cu_paths, max_val = cugraph_call(
          gpubenchmark, input_G_or_matrix, source, edgevals=True
      )
  
      # Calculating mismatch
      err = 0
      for vid in cu_paths:
          # Validate vertices that are reachable
          # NOTE : If distance type is float64 then cu_paths[vid][0]
          # should be compared against np.finfo(np.float64).max)
          distances = cugraph.sssp(G, source=vid)
          if cu_paths[vid][0] != max_val:
              if cu_paths[vid][0] != golden_paths[vid]:
                  err = err + 1
              # check pred dist + edge_weight = current dist
              if vid != source:
                  pred = cu_paths[vid][1]
                  if G.has_edge(pred, vid):
                      edge_weight = distances[
                          distances["vertex"] == pred
                      ].iloc[0, 0]
                  if (
                      cu_paths[pred][0] + edge_weight
                      != cu_paths[vid][0]
                  ):
                      err = err + 1
          else:
              if vid in golden_paths.keys():
                  err = err + 1
      assert err == 0
  
imports: import gc
  import pytest
  import numpy
  import pandas
  import cudf
  import cupyx
  import cugraph
  import cupy
  from cupyx.scipy.sparse import coo_matrix
  from cupyx.scipy.sparse import csr_matrix
  from cupyx.scipy.sparse import csc_matrix
  from scipy.sparse import coo_matrix
  from scipy.sparse import csr_matrix
  from scipy.sparse import csc_matrix
  from pylibcugraph.testing.utils import gen_fixture_params_product
  from cugraph.testing import utils, get_resultset, load_resultset, UNDIRECTED_DATASETS, SMALL_DATASETS
label_desc: Use image node_id 13 for calling a global function with example usage: test_sssp_edgevals(gpubenchmark, dataset_source_goldenresults_weighted, cugraph_input_type) without return types