code: def test_wrapped_actor_handle(ray_start_regular_shared):
      @ray.remote
      class B:
          def doit(self):
              return 2
  
      @ray.remote
      class A:
          def __init__(self):
              self.b = B.remote()
  
          def get_actor_ref(self):
              return [self.b]
  
      a = A.remote()
      b_list = ray.get(a.get_actor_ref.remote())
      assert ray.get(b_list[0].doit.remote()) == 2
  
imports: import datetime
  import os
  import random
  import sys
  import tempfile
  import numpy
  import pytest
  import ray
  from ray import cloudpickle
  from ray._private import ray_constants
  from ray._private.test_utils import client_test_enabled, wait_for_condition, wait_for_pid_to_exit
  from ray.actor import ActorClassInheritanceException
  from ray.tests.client_test_utils import create_remote_signal_actor
  from ray._private.test_utils import SignalActor
  import setproctitle
label_desc: Use image node_id 38 for calling a global function with example usage: test_wrapped_actor_handle(ray_start_regular_shared) and returns: int, list