code: def client_of_mg_server(mg_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)
  
      # 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 3 for calling a global function with example usage: client_of_mg_server(mg_server) without return types