code: def dependency_check_config(request):
      key, deps, raises_exception = request.param
  
      @register_scheduler_config(key, dependencies=deps)
      @ludwig_dataclass
      class DependencyCheckConfig(BaseSchedulerConfig):
          type: str = ProtectedString(key)
  
      yield DependencyCheckConfig(), raises_exception
      del scheduler_config_registry[key]
  
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 1 for calling a global function with example usage: dependency_check_config(request) without return types