code: def test_dependency_check(dependency_check_config):
      """Test that the hyperopt scheduler dependency check properly identifies missing dependencies.
  
      Some schedulers supported by Ray Tune have additional dependencies that may not be installed. The schema records
      these dependencies and can be used to verify they are installed at run time.
      """
      config, raises_exception = dependency_check_config
      if raises_exception:
          with pytest.raises(ImportError):
              config.dependencies_installed()
      else:
          assert config.dependencies_installed()
  
imports: import pytest
  from ludwig.schema.hyperopt.scheduler import BaseSchedulerConfig
  from ludwig.schema.hyperopt.utils import register_scheduler_config, scheduler_config_registry
  from ludwig.schema.utils import ludwig_dataclass, ProtectedString
label_desc: Use image node_id 2 for calling a global function with example usage: test_dependency_check(dependency_check_config) without return types