code: def test_uniform_neighbor_sampling_result_on_device(
      benchmark,
      result_device_id,
      client_of_sg_server_on_device_1_large_property_graph_loaded,
  ):
      """
      Ensures uniform_neighbor_sample() results are transfered from the server to
      a specific client device when specified.
      """
      (
          client,
          graph_id,
      ) = client_of_sg_server_on_device_1_large_property_graph_loaded
      extracted_graph_id = client.extract_subgraph(graph_id=graph_id)
  
      start_list = [0, 1, 2]
      fanout_vals = [2]
      with_replacement = False
  
      result = benchmark(
          client.uniform_neighbor_sample,
          start_list=start_list,
          fanout_vals=fanout_vals,
          with_replacement=with_replacement,
          graph_id=extracted_graph_id,
          result_device=result_device_id,
      )
  
      assert (
          len(result.sources)
          == len(result.destinations)
          == len(result.indices)
      )
      dtype = type(result.sources)
  
      if result_device_id is None:
          # host memory
          assert dtype is list
      else:
          # device memory
          assert dtype is cp.ndarray
          device_n = cp.cuda.Device(result_device_id)
          assert result.sources.device == device_n
  
imports: import os
  from pathlib import Path
  import pytest
  import cupy
  from cugraph_service_server.testing import utils
  from .None import data
label_desc: Use image node_id 13 for calling a global function with example usage: test_uniform_neighbor_sampling_result_on_device(benchmark, result_device_id, client_of_sg_server_on_device_1_large_property_graph_loaded) without return types