code: def test_task_output_inline_bytes_limit(ray_start_cluster_enabled):
      cluster = ray_start_cluster_enabled
      # Disable worker caching so worker leases are not reused; set object
      # inlining size threshold and enable storing of small objects in in-memory
      # object store so the borrowed ref is inlined.
      # set task_rpc_inlined_bytes_limit which only allows inline 20 bytes.
      cluster.add_node(
          num_cpus=1,
          resources={"pin_head": 1},
          _system_config={
              "worker_lease_timeout_milliseconds": 0,
              "max_direct_call_object_size": 100 * 1024,
              "task_rpc_inlined_bytes_limit": 20,
          },
      )
      cluster.add_node(num_cpus=1, resources={"pin_worker": 1})
      ray.init(address=cluster.address)
  
      @ray.remote(num_returns=5, resources={"pin_head": 1})
      def f():
          return list(range(5))
  
      @ray.remote(resources={"pin_worker": 1})
      def sum():
          numbers = f.remote()
          result = 0
          for i, ref in enumerate(numbers):
              result += ray.get(ref)
              inlined = ray._private.worker.global_worker.core_worker.object_exists(
                  ref, memory_store_only=True
              )
              if i < 2:
                  assert inlined
              else:
                  assert not inlined
          return result
  
      assert ray.get(sum.remote()) == 10
  
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 4 for calling a global function with example usage: test_task_output_inline_bytes_limit(ray_start_cluster_enabled) and returns: list, result