code: def test_wrapped_actor_creation(call_ray_start_shared, shutdown_only):
      """
      When the client schedules an actor, the server will load a separate
      copy of the actor class if it's defined in a separate file. This
      means that modifications to the client's copy of the actor class
      aren't propagated to the server. Currently, tracing logic modifies
      the signatures of actor methods to pass around metadata when ray.remote
      is applied to an actor class. However, if a user does something like:
  
      class SomeActor:
          def __init__(self):
              pass
  
      def decorate_actor():
          RemoteActor = ray.remote(SomeActor)
          ...
  
      Then the SomeActor class will have its signatures modified on the client
      side, but not on the server side, since ray.remote was applied inside of
      the function instead of directly on the actor. Note if it were directly
      applied to the actor then the signature would be modified when the server
      imports the class.
      """
      import ray
  
      ray.init(SHARED_CLIENT_SERVER_ADDRESS)
      run_wrapped_actor_creation()
  
imports: import _thread
  import logging
  import os
  import queue
  import sys
  import threading
  import time
  from unittest.mock import Mock
  from typing import Type
  import numpy
  import pytest
  from pydantic import BaseModel
  from pydantic.v1 import BaseModel
  import ray.cloudpickle
  import ray.util.client.server.server
  from ray._private.client_mode_hook import client_mode_should_convert, disable_client_hook, enable_client_mode
  from ray._private.test_utils import run_string_as_driver
  from ray.tests.client_test_utils import create_remote_signal_actor, run_wrapped_actor_creation
  from ray.tests.conftest import call_ray_start_context
  from ray.util.client.common import OBJECT_TRANSFER_CHUNK_SIZE, ClientObjectRef
  from ray.util.client.ray_client_helpers import ray_start_client_server_for_address
label_desc: Use image node_id 29 for calling a global function with example usage: test_wrapped_actor_creation(call_ray_start_shared, shutdown_only) without return types