code: def test_sssp(
      gpubenchmark, dataset_source_goldenresults, cugraph_input_type
  ):
      # Extract the params generated from the fixture
      (
          G,
          dataset_path,
          _,
          source,
          golden_paths,
      ) = dataset_source_goldenresults
  
      if not isinstance(cugraph_input_type, cugraph.Graph):
          input_G_or_matrix = utils.create_obj_from_csv(
              dataset_path, cugraph_input_type, edgevals=True
          )
      else:
          input_G_or_matrix = G
      cu_paths, max_val = cugraph_call(
          gpubenchmark, input_G_or_matrix, source
      )
  
      # 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)
          if cu_paths[vid][0] != max_val:
              if cu_paths[vid][0] != golden_paths[vid]:
                  err = err + 1
              # check pred dist + 1 = current dist (since unweighted)
              pred = cu_paths[vid][1]
              if (
                  vid != source
                  and cu_paths[pred][0] + 1 != 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 9 for calling a global function with example usage: test_sssp(gpubenchmark, dataset_source_goldenresults, cugraph_input_type) without return types