code: def test_slow_spill_objects_automatically(
      slow_spilling_config, shutdown_only
  ):
      # Limit our object store to 75 MiB of memory.
      object_spilling_config, _ = slow_spilling_config
      address = ray.init(
          num_cpus=1,
          object_store_memory=75 * 1024 * 1024,
          _system_config={
              "max_io_workers": 4,
              "automatic_object_spilling_enabled": True,
              "object_store_full_delay_ms": 100,
              "object_spilling_config": object_spilling_config,
              "min_spilling_size": 0,
          },
      )
      replay_buffer = []
      solution_buffer = []
      buffer_length = 10
  
      # Create objects of more than 800 MiB.
      for _ in range(buffer_length):
          ref = None
          while ref is None:
              multiplier = random.choice([1, 2, 3])
              arr = np.random.rand(multiplier * 1024 * 1024)
              ref = ray.put(arr)
              replay_buffer.append(ref)
              solution_buffer.append(arr)
      print("spill done.")
      # randomly sample objects
      for _ in range(buffer_length):
          index = random.choice(list(range(buffer_length)))
          ref = replay_buffer[index]
          solution = solution_buffer[index]
          sample = ray.get(ref, timeout=None)
          assert np.array_equal(sample, solution)
      assert_no_thrashing(address["address"])
  
imports: import copy
  import json
  import platform
  import random
  import sys
  from datetime import datetime, timedelta
  from unittest.mock import patch
  import numpy
  import pytest
  import ray
  from ray._private.external_storage import create_url_with_offset, parse_url_with_offset, _get_unique_spill_filename, FileSystemStorage, ExternalStorageSmartOpenImpl
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import wait_for_condition
  from ray._raylet import GcsClientOptions
  from ray.tests.conftest import buffer_object_spilling_config, file_system_object_spilling_config, mock_distributed_fs_object_spilling_config
label_desc: Use image node_id 14 for calling a global function with example usage: test_slow_spill_objects_automatically(slow_spilling_config, shutdown_only) without return types