code: def test_delete_objects(object_spilling_config, shutdown_only):
      # Limit our object store to 75 MiB of memory.
      object_spilling_config, temp_folder = object_spilling_config
  
      address = ray.init(
          object_store_memory=75 * 1024 * 1024,
          _system_config={
              "max_io_workers": 1,
              "min_spilling_size": 0,
              "automatic_object_spilling_enabled": True,
              "object_store_full_delay_ms": 100,
              "object_spilling_config": object_spilling_config,
          },
      )
      arr = np.random.rand(1024 * 1024)  # 8 MB data
      replay_buffer = []
  
      for _ in range(80):
          ref = None
          while ref is None:
              ref = ray.put(arr)
              replay_buffer.append(ref)
  
      print("-----------------------------------")
  
      del replay_buffer
      del ref
      wait_for_condition(lambda: is_dir_empty(temp_folder))
      assert_no_thrashing(address["address"])
  
imports: import os
  import platform
  import random
  import subprocess
  import sys
  import tempfile
  import numpy
  import pytest
  import ray
  from ray._private.test_utils import run_string_as_driver, wait_for_condition
  from ray.tests.test_object_spilling import assert_no_thrashing, is_dir_empty
  from ray._private.external_storage import FileSystemStorage, ExternalStorageRayStorageImpl
label_desc: Use image node_id 1 for calling a global function with example usage: test_delete_objects(object_spilling_config, shutdown_only) without return types