code: def test_spilling_when_possible_on_get():
      try:
          address = _init_ray()
          x1 = ray.put(np.zeros(400 * MB, dtype=np.uint8))
          # x1 will be spilled.
          x2 = ray.put(np.zeros(400 * MB, dtype=np.uint8))
          check_spilled_mb(address, spilled=400)
          # x1 will be restored, x2 will be spilled.
          ray.get(x1)
          check_spilled_mb(address, spilled=800, restored=400)
          # x2 will be restored, spilling x1.
          ray.get(x2)
          check_spilled_mb(address, spilled=800, restored=800)
      finally:
          ray.shutdown()
  
imports: import numpy
  import json
  import random
  import os
  import shutil
  import platform
  import pytest
  import psutil
  import ray
  from ray._private.test_utils import check_spilled_mb, fetch_prometheus, wait_for_condition
label_desc: Use image node_id 7 for calling a global function with example usage: test_spilling_when_possible_on_get() without return types