code: def _test_object_spilling_threshold(
      thres, num_objects, num_objects_spilled
  ):
      try:
          ray.init(
              object_store_memory=2_200_000_000,
              _system_config={"object_spilling_threshold": thres}
              if thres
              else {},
          )
          objs = []
          for _ in range(num_objects):
              objs.append(
                  ray.put(np.empty(200_000_000, dtype=np.uint8))
              )
          if num_objects_spilled == 0:
              time.sleep(10)  # Wait for spilling to happen
          _check_spilled(num_objects_spilled)
      finally:
          ray.shutdown()
  
imports: import json
  import platform
  import random
  import re
  import shutil
  import sys
  import time
  import zlib
  from collections import defaultdict
  import numpy
  import pytest
  import ray
  from ray._private.test_utils import wait_for_condition
  from ray.cluster_utils import Cluster, cluster_not_supported
  from ray.tests.test_object_spilling import assert_no_thrashing, is_dir_empty
label_desc: Use image node_id 3 for calling a global function with example usage: _test_object_spilling_threshold(thres, num_objects, num_objects_spilled) without return types