code: def test_default_config(shutdown_only):
      ray.init(num_cpus=0, object_store_memory=75 * 1024 * 1024)
      # Make sure the object spilling configuration is properly set.
      config = json.loads(
          ray._private.worker._global_node._config[
              "object_spilling_config"
          ]
      )
      assert config["type"] == "filesystem"
      assert (
          config["params"]["directory_path"]
          == ray._private.worker._global_node._session_dir
      )
      # Make sure the basic workload can succeed.
      run_basic_workload()
      ray.shutdown()
  
      # Make sure config is not initalized if spilling is not enabled..
      ray.init(
          num_cpus=0,
          object_store_memory=75 * 1024 * 1024,
          _system_config={
              "automatic_object_spilling_enabled": False,
              "object_store_full_delay_ms": 100,
          },
      )
      assert (
          "object_spilling_config"
          not in ray._private.worker._global_node._config
      )
      run_basic_workload()
      ray.shutdown()
  
      # Make sure when we use a different config, it is reflected.
      ray.init(
          num_cpus=0,
          _system_config={
              "object_spilling_config": (
                  json.dumps(mock_distributed_fs_object_spilling_config)
              )
          },
      )
      config = json.loads(
          ray._private.worker._global_node._config[
              "object_spilling_config"
          ]
      )
      assert config["type"] == "mock_distributed_fs"
  
imports: import copy
  import json
  import platform
  import random
  import sys
  from datetime import datetime, timedelta
  from unittest.mock import patch
  import numpy
  import pytest
  import ray
  from ray._private.external_storage import create_url_with_offset, parse_url_with_offset, _get_unique_spill_filename, FileSystemStorage, ExternalStorageSmartOpenImpl
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import wait_for_condition
  from ray._raylet import GcsClientOptions
  from ray.tests.conftest import buffer_object_spilling_config, file_system_object_spilling_config, mock_distributed_fs_object_spilling_config
label_desc: Use image node_id 7 for calling a global function with example usage: test_default_config(shutdown_only) without return types