code: def test_future_resolution_skip_plasma(ray_start_cluster_enabled):
      cluster = ray_start_cluster_enabled
      # Disable worker caching so worker leases are not reused; set object
      # inlining size threshold so the borrowed ref is inlined.
      cluster.add_node(
          num_cpus=1,
          resources={"pin_head": 1},
          _system_config={
              "worker_lease_timeout_milliseconds": 0,
              "max_direct_call_object_size": 100 * 1024,
          },
      )
      cluster.add_node(num_cpus=1, resources={"pin_worker": 1})
      ray.init(address=cluster.address)
  
      @ray.remote(resources={"pin_head": 1})
      def f(x):
          return x + 1
  
      @ray.remote(resources={"pin_worker": 1})
      def g(x):
          borrowed_ref = x[0]
          f_ref = f.remote(borrowed_ref)
          f_result = ray.get(f_ref)
          # borrowed_ref should be inlined on future resolution and shouldn't be
          # in Plasma.
          assert ray._private.worker.global_worker.core_worker.object_exists(
              borrowed_ref, memory_store_only=True
          )
          return f_result * 2
  
      one = f.remote(0)
      g_ref = g.remote([one])
      assert ray.get(g_ref) == 4
  
file_path: ray/python/ray/tests/test_advanced_7.py
imports: import logging
  import random
  import sys
  import threading
  import time
  from concurrent.futures import ThreadPoolExecutor
  import numpy
  import pytest
  import ray.cluster_utils
  from ray._private.test_utils import client_test_enabled
label_desc: Use image node_id 3 for calling a global function with example usage: test_future_resolution_skip_plasma(ray_start_cluster_enabled) and returns: unknown, unknown