code: def test_quickstart_class(serve_with_client):
      @serve.deployment
      def hello(request):
          name = request.query_params["name"]
          return f"Hello {name}!"
  
      serve.run(hello.bind())
  
      # Query our endpoint over HTTP.
      response = requests.get(
          "http://127.0.0.1:8000/hello?name=serve"
      ).text
      assert response == "Hello serve!"
  
file_path: ray/python/ray/serve/tests/test_ray_client.py
imports: import random
  import subprocess
  import sys
  import time
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.test_utils import run_string_as_driver
label_desc: Use image node_id 4 for calling a global function with example usage: test_quickstart_class(serve_with_client) and returns: str, name, str