code: def test_append_default_spilling_dir_config():
      assert _append_default_spilling_dir_config({}, "/xx/yy") == {
          "system_config": {
              "object_spilling_config": '{"type": "filesystem", "params": {"directory_path": "/xx/yy"}}'  # noqa: E501
          }
      }
      assert _append_default_spilling_dir_config(
          {"system_config": {"a": 3}}, "/xx/yy"
      ) == {
          "system_config": {
              "a": 3,
              "object_spilling_config": '{"type": "filesystem", "params": {"directory_path": "/xx/yy"}}',  # noqa: E501
          }
      }
      assert _append_default_spilling_dir_config(
          {
              "system_config": {
                  "a": 4,
                  "object_spilling_config": '{"type": "filesystem", "params": {"directory_path": "/aa/bb"}}',  # noqa: E501
              },
          },
          "/xx/yy",
      ) == {
          "system_config": {
              "a": 4,
              "object_spilling_config": '{"type": "filesystem", "params": {"directory_path": "/aa/bb"}}',  # noqa: E501
          }
      }
  
file_path: ray/python/ray/tests/spark/test_utils.py
imports: from unittest.mock import patch
  import os
  import re
  import sys
  import pytest
  from ray.util.spark.utils import get_spark_task_assigned_physical_gpus, _calc_mem_per_ray_worker_node, _get_avail_mem_per_ray_worker_node
  from ray.util.spark.cluster_init import _convert_ray_node_options, _verify_node_options, _append_default_spilling_dir_config
label_desc: Use image node_id 6 for calling a global function with example usage: test_append_default_spilling_dir_config() without return types