code: def test_release_resource(object_spilling_config, shutdown_only):
      object_spilling_config, temp_folder = object_spilling_config
      address = ray.init(
          num_cpus=1,
          object_store_memory=75 * 1024 * 1024,
          _system_config={
              "max_io_workers": 1,
              "automatic_object_spilling_enabled": True,
              "object_spilling_config": object_spilling_config,
          },
      )
      plasma_obj = ray.put(np.ones(50 * 1024 * 1024, dtype=np.uint8))
      for _ in range(5):
          ray.put(
              np.ones(50 * 1024 * 1024, dtype=np.uint8)
          )  # Force spilling
  
      @ray.remote
      def sneaky_task_tries_to_steal_released_resources():
          print("resources were released!")
  
      @ray.remote
      def f(dep):
          while True:
              try:
                  ray.get(dep[0], timeout=0.001)
              except ray.exceptions.GetTimeoutError:
                  pass
  
      done = f.remote([plasma_obj])  # noqa
      canary = sneaky_task_tries_to_steal_released_resources.remote()
      ready, _ = ray.wait([canary], timeout=2)
      assert not ready
      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 7 for calling a global function with example usage: test_release_resource(object_spilling_config, shutdown_only) without return types