code: def test_node2vec_renumber_cupy(graph_file, renumber):
      import cupy as cp
      import numpy as np
  
      src_arr = cp.asarray([0, 1, 2, 3, 4, 5, 6, 7, 8], dtype=np.int32)
      dst_arr = cp.asarray([1, 2, 3, 4, 5, 6, 7, 8, 9], dtype=np.int32)
      wgt_arr = cp.asarray(
          [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
          dtype=np.float32,
      )
      seeds = cp.asarray([8, 0, 7, 1, 6, 2], dtype=np.int32)
      max_depth = 4
      num_seeds = 6
  
      resource_handle = ResourceHandle()
      graph_props = GraphProperties(
          is_symmetric=False, is_multigraph=False
      )
      G = SGGraph(
          resource_handle=resource_handle,
          graph_properties=graph_props,
          src_or_offset_array=src_arr,
          dst_or_index_array=dst_arr,
          weight_array=wgt_arr,
          store_transposed=False,
          renumber=renumber,
          do_expensive_check=True,
      )
  
      (paths, weights, sizes) = node2vec(
          resource_handle, G, seeds, max_depth, False, 0.8, 0.5
      )
  
      for i in range(num_seeds):
          if paths[i * max_depth] != seeds[i]:
              raise ValueError(
                  "vertex_path {} start did not match seed \
                               vertex".format(
                      paths
                  )
              )
  
file_path: cugraph/python/pylibcugraph/pylibcugraph/tests/test_node2vec.py
imports: import pytest
  import cupy
  import numpy
  from pylibcugraph import ResourceHandle, GraphProperties, SGGraph, node2vec
  from pylibcugraph.testing import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_node2vec_renumber_cupy(graph_file, renumber) without return types