code: def test_call_extension_result_on_device_error(
      extension1, client_of_sg_server_on_device_1
  ):
      """
      Ensure errors are handled properly when using device transfer
      """
      from cugraph_service_client.exceptions import CugraphServiceError
  
      client = client_of_sg_server_on_device_1
      extension_dir = extension1
      array1_len = 1.23  # should raise an exception
      array2_len = 10
  
      ext_mod_names = client.load_extensions(extension_dir)
  
      with pytest.raises(CugraphServiceError):
          client.call_extension(
              "my_nines_function",
              array1_len,
              "int32",
              array2_len,
              "float64",
              result_device=0,
          )
  
      for mod_name in ext_mod_names:
          client.unload_extension_module(mod_name)
  
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 14 for calling a global function with example usage: test_call_extension_result_on_device_error(extension1, client_of_sg_server_on_device_1) without return types