code: def test_shortest_path_length_no_path(graphs):
      cugraph_G, cupy_df = graphs
  
      # FIXME: In case there is no path between two vertices, the
      # result can be either the max of float32 or float64
      max_float_32 = (2 - math.pow(2, -23)) * math.pow(2, 127)
  
      path_1_to_8 = cugraph.shortest_path_length(cugraph_G, 1, 8)
      assert path_1_to_8 == sys.float_info.max
  
      golden_path_1_to_8 = paths_golden_results[
          "shortest_path_length_1_8"
      ]
      golden_path_1_to_8 = np.float32(golden_path_1_to_8)
      assert golden_path_1_to_8 in [
          max_float_32,
          path_1_to_8,
      ]
      assert path_1_to_8 == cugraph.shortest_path_length(cupy_df, 1, 8)
  
file_path: cugraph/python/cugraph/cugraph/tests/traversal/test_paths.py
imports: import sys
  from tempfile import NamedTemporaryFile
  import math
  import numpy
  import pytest
  import cudf
  import cupy
  import cugraph
  from cugraph.testing import get_resultset, load_resultset
  from cupyx.scipy.sparse import coo_matrix
label_desc: Use image node_id 7 for calling a global function with example usage: test_shortest_path_length_no_path(graphs) without return types