code: def client(server):
      """
      Creates a client instance to the running server, 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()
  
file_path: cugraph/python/cugraph-service/tests/conftest.py
imports: import pytest
  from cugraph_service_server.testing import utils
label_desc: Use image node_id 14 for calling a global function with example usage: client(server) without return types