code: def test_use_actor_within_actor(ray_start_10_cpus):
      # Make sure we can use actors within actors.
  
      @ray.remote
      class Actor1:
          def __init__(self, x):
              self.x = x
  
          def get_val(self):
              return self.x
  
      @ray.remote
      class Actor2:
          def __init__(self, x, y):
              self.x = x
              self.actor1 = Actor1.remote(y)
  
          def get_values(self, z):
              return self.x, ray.get(self.actor1.get_val.remote())
  
      actor2 = Actor2.remote(3, 4)
      assert ray.get(actor2.get_values.remote(5)) == (3, 4)
  
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 5 for calling a global function with example usage: test_use_actor_within_actor(ray_start_10_cpus) and returns: self, self,  ray