code: def test_uniform_neighbor_sample_offset_renumber(hops):
      el = email_Eu_core.get_edgelist()
  
      G = cugraph.Graph(directed=True)
      G.from_cudf_edgelist(el, source="src", destination="dst")
  
      seeds = G.select_random_vertices(62, int(0.0001 * len(el)))
  
      (
          sampling_results_unrenumbered,
          offsets_unrenumbered,
      ) = cugraph.uniform_neighbor_sample(
          G,
          seeds,
          hops,
          with_replacement=False,
          with_edge_properties=True,
          with_batch_ids=False,
          deduplicate_sources=True,
          renumber=False,
          return_offsets=True,
          random_state=62,
      )
  
      (
          sampling_results_renumbered,
          offsets_renumbered,
          renumber_map,
      ) = cugraph.uniform_neighbor_sample(
          G,
          seeds,
          hops,
          with_replacement=False,
          with_edge_properties=True,
          with_batch_ids=False,
          deduplicate_sources=True,
          renumber=True,
          return_offsets=True,
          random_state=62,
      )
  
      sources_hop_0 = sampling_results_unrenumbered[
          sampling_results_unrenumbered.hop_id == 0
      ].sources
      for hop in range(len(hops)):
          destinations_hop = sampling_results_unrenumbered[
              sampling_results_unrenumbered.hop_id <= hop
          ].destinations
          expected_renumber_map = cudf.concat(
              [sources_hop_0, destinations_hop]
          ).unique()
  
          assert sorted(
              expected_renumber_map.values_host.tolist()
          ) == sorted(
              renumber_map.map[
                  0 : len(expected_renumber_map)
              ].values_host.tolist()
          )
  
      renumber_map_offsets = (
          offsets_renumbered.renumber_map_offsets.dropna()
      )
      assert len(renumber_map_offsets) == 2
      assert renumber_map_offsets.iloc[0] == 0
      assert renumber_map_offsets.iloc[-1] == len(renumber_map)
  
      assert len(offsets_renumbered) == 2
  
imports: import gc
  import random
  import pytest
  import cupy
  import cudf
  import cugraph
  from cugraph import uniform_neighbor_sample
  from cugraph.testing import UNDIRECTED_DATASETS
  from cugraph.datasets import email_Eu_core, small_tree
  from pylibcugraph.testing.utils import gen_fixture_params_product
label_desc: Use image node_id 18 for calling a global function with example usage: test_uniform_neighbor_sample_offset_renumber(hops) without return types