code: def test_uniform_neighbor_sampling_result_on_device_error(
      client_of_sg_server_on_device_1_large_property_graph_loaded,
  ):
      """
      Ensure errors are handled properly when using device transfer
      """
      from cugraph_service_client.exceptions import CugraphServiceError
  
      (
          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 = []  # should raise an exception
      with_replacement = False
  
      with pytest.raises(CugraphServiceError):
          client.uniform_neighbor_sample(
              start_list=start_list,
              fanout_vals=fanout_vals,
              with_replacement=with_replacement,
              graph_id=extracted_graph_id,
              result_device=0,
          )
  
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 12 for calling a global function with example usage: test_uniform_neighbor_sampling_result_on_device_error(client_of_sg_server_on_device_1_large_property_graph_loaded) without return types