code: def test_return_actor_handle_from_actor(ray_start_regular_shared):
      @ray.remote
      class Inner:
          def ping(self):
              return "pong"
  
      @ray.remote
      class Outer:
          def __init__(self):
              self.inner = Inner.remote()
  
          def get_ref(self):
              return self.inner
  
      outer = Outer.remote()
      inner = ray.get(outer.get_ref.remote())
      assert ray.get(inner.ping.remote()) == "pong"
  
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 43 for calling a global function with example usage: test_return_actor_handle_from_actor(ray_start_regular_shared) and returns: str, self