code: def test_load_config():
      default_config = _load_config()
      assert (
          default_config["scheduling"]["autoscale"]["enabled"] is False
      )
      default_config = _load_config(
          {"scheduling": {"autoscale": {"enabled": True}}}
      )
      assert (
          default_config["scheduling"]["autoscale"]["enabled"] is True
      )
      default_config = _load_config(
          {
              "scheduling.autoscale.enabled": True,
              "scheduling.autoscale.scheduler_backlog_timeout": 1,
          }
      )
      assert (
          default_config["scheduling"]["autoscale"]["enabled"] is True
      )
      assert (
          default_config["scheduling"]["autoscale"][
              "scheduler_backlog_timeout"
          ]
          == 1
      )
      with pytest.raises(ValueError):
          _load_config(
              {
                  "scheduling.autoscale.enabled": True,
                  "scheduling.autoscale": {},
              }
          )
      assert (
          _load_config(CONFIG_FILE)["session"]["custom_log_dir"]
          == "auto"
      )
  
imports: import asyncio
  import copy
  import operator
  import os
  from functools import reduce
  import numpy
  import pytest
  from ....None import tensor
  from ....None import dataframe
  from ....learn.contrib.lightgbm.tests import test_classifier
  from ....oscar.errors import ReconstructWorkerError
  from ....session import get_default_session, new_session
  from ....tests.core import require_ray, mock, DICT_NOT_EMPTY
  from ....utils import lazy_import
  from ..ray import _load_config, ClusterStateActor, new_cluster
  from ..tests import test_local
  from .modules.utils import cleanup_third_party_modules_output, get_output_filenames
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_config() without return types