code: def shared_ray_instance(request):
      yield ray.init(num_cpus=16)
      ray.shutdown()
  
file_path: ray/python/ray/serve/tests/test_http_util.py
imports: import asyncio
  import pickle
  from typing import Generator, Tuple, Union
  import pytest
  from starlette.types import Message
  import ray
  from ray._private.utils import get_or_create_event_loop
  from ray.actor import ActorHandle
  from ray.serve._private.http_util import ASGIReceiveProxy, MessageQueue
label_desc: Use image node_id 1 for calling a global function with example usage: shared_ray_instance(request) without return types