code: def test_standalone_actor_outside_serve(shutdown_ray_and_serve):
      # https://github.com/ray-project/ray/issues/20066
  
      ray.init(num_cpus=8, namespace="serve")
  
      @ray.remote
      class MyActor:
          def ready(self):
              return
  
      a = MyActor.options(name="my_actor").remote()
      ray.get(a.ready.remote())
  
      serve.start()
      serve.shutdown()
  
      ray.get(a.ready.remote())
      ray.shutdown()
  
imports: import os
  import subprocess
  import sys
  from contextlib import contextmanager
  from tempfile import NamedTemporaryFile
  import pytest
  import requests
  import ray
  import ray._private.state
  import ray.actor
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME, SERVE_NAMESPACE
  from ray.serve.context import _get_global_client
  from ray.tests.conftest import call_ray_stop_only
  from ray.util.state import list_actors
label_desc: Use image node_id 5 for calling a global function with example usage: test_standalone_actor_outside_serve(shutdown_ray_and_serve) without return types