code: def client_of_sg_server_on_device_1(sg_server_on_device_1):
      """
      Creates a client instance to a server running on device 1, closes the
      client when the fixture is no longer used by tests.
      """
      from cugraph_service_client import CugraphServiceClient, defaults
  
      client = CugraphServiceClient(defaults.host, defaults.port)
  
      for gid in client.get_graph_ids():
          client.delete_graph(gid)
  
      # FIXME: should this fixture always unconditionally unload all extensions?
      # client.unload_graph_creation_extensions()
  
      # yield control to the tests, cleanup on return
      yield client
  
      client.close()
  
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 5 for calling a global function with example usage: client_of_sg_server_on_device_1(sg_server_on_device_1) without return types