code: def test_actor_constructor_borrowed_refs(shutdown_only):
      ray.init(object_store_memory=100 * 1024 * 1024)
  
      @ray.remote
      class Borrower:
          def __init__(self, borrowed_refs):
              self.borrowed_refs = borrowed_refs
  
          def test(self):
              ray.get(self.borrowed_refs)
  
      # Actor is the only one with a ref.
      ref = ray.put(np.random.random(1024 * 1024))
      b = Borrower.remote([ref])
      del ref
      # Check that the actor's ref is usable.
      for _ in range(3):
          ray.get(b.test.remote())
          time.sleep(1)
  
imports: import logging
  import os
  import copy
  import platform
  import random
  import signal
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray.cluster_utils
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import SignalActor, put_object, wait_for_condition, wait_for_num_actors
  import ray._private.gcs_utils
label_desc: Use image node_id 13 for calling a global function with example usage: test_actor_constructor_borrowed_refs(shutdown_only) without return types