code: def dependency_check_config(request):
      key, deps, raises_exception = request.param
  
      @register_search_algorithm_config(key, dependencies=deps)
      @ludwig_dataclass
      class DependencyCheckConfig(BaseSearchAlgorithmConfig):
          type: str = ProtectedString(key)
  
      yield DependencyCheckConfig(), raises_exception
      del search_algorithm_config_registry[key]
  
imports: import pytest
  from ludwig.schema.hyperopt.search_algorithm import BaseSearchAlgorithmConfig
  from ludwig.schema.hyperopt.utils import register_search_algorithm_config, search_algorithm_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