code: def test_get_actor_in_remote_workers(ray_start_cluster):
      """Make sure we can get and create actors without
      race condition in a remote worker.
  
      Check https://github.com/ray-project/ray/issues/20092. # noqa
      """
      cluster = ray_start_cluster
      cluster.add_node(num_cpus=0)
      cluster.add_node(num_cpus=1)
      ray.init(address=cluster.address, namespace="xxx")
  
      @ray.remote(num_cpus=0)
      class RemoteProc:
          def __init__(self):
              pass
  
          def procTask(self, a, b):
              print("[%s]-> %s" % (a, b))
              return a, b
  
      @ray.remote
      def submit_named_actors():
          RemoteProc.options(
              name="test",
              lifetime="detached",
              max_concurrency=10,
              namespace="xxx",
          ).remote()
          proc = ray.get_actor("test", namespace="xxx")
          ray.get(proc.procTask.remote(1, 2))
          # Should be able to create an actor with the same name
          # immediately after killing it.
          ray.kill(proc)
          RemoteProc.options(
              name="test",
              lifetime="detached",
              max_concurrency=10,
              namespace="xxx",
          ).remote()
          proc = ray.get_actor("test", namespace="xxx")
          return ray.get(proc.procTask.remote(1, 2))
  
      assert (1, 2) == ray.get(submit_named_actors.remote())
  
imports: import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  from ray.util.state import list_actors
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, make_global_state_accessor, run_string_as_driver, wait_for_condition, wait_for_pid_to_exit
  from ray._private.ray_constants import gcs_actor_scheduling_enabled
  from ray.experimental.internal_kv import _internal_kv_get, _internal_kv_put
label_desc: Use image node_id 35 for calling a global function with example usage: test_get_actor_in_remote_workers(ray_start_cluster) and returns: ray, a,  b