code: def test_too_many_features_config():
      # GBMs Must have exactly one output feature
      with pytest.raises(ConfigValidationError):
          check_schema(
              {
                  "input_features": [number_feature()],
                  "output_features": [
                      binary_feature(),
                      number_feature(),
                  ],
                  "model_type": "gbm",
              }
          )
  
      # Multi-output is fine for ECD
      check_schema(
          {
              "input_features": [number_feature()],
              "output_features": [binary_feature(), number_feature()],
              "model_type": "ecd",
          }
      )
  
file_path: ludwig/tests/ludwig/config_validation/test_validate_config_features.py
imports: import pytest
  from ludwig.config_validation.validation import check_schema
  from ludwig.error import ConfigValidationError
  from tests.integration_tests.utils import binary_feature, category_feature, number_feature, text_feature
label_desc: Use image node_id 5 for calling a global function with example usage: test_too_many_features_config() without return types