code: def sg_server_on_device_1():
      """
      Start a cugraph_service server, stop it when done with the fixture.
      """
      from cugraph_service_client import CugraphServiceClient
      from cugraph_service_client.exceptions import CugraphServiceError
  
      host = "localhost"
      port = 9090
      client = CugraphServiceClient(host, port)
  
      try:
          client.uptime()
          print(
              "FOUND RUNNING SERVER, ASSUMING IT SHOULD BE USED FOR TESTING!"
          )
          yield
  
      except CugraphServiceError:
          # A server was not found, so start one for testing then stop it when
          # testing is done.
          server_process = utils.start_server_subprocess(
              host=host,
              port=port,
              env_additions={"CUDA_VISIBLE_DEVICES": "1"},
          )
  
          # yield control to the tests, cleanup on return
          yield
  
          print("\nTerminating server...", end="", flush=True)
          server_process.terminate()
          server_process.wait(timeout=60)
          print("done.", flush=True)
  
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 2 for calling a global function with example usage: sg_server_on_device_1() without return types