code: def test_goss_deactivate_bagging(tmpdir, local_backend):
      """Test that bagging is disabled for the GOSS boosting type.
  
      TODO: Re-enable when GOSS is supported: https://github.com/ludwig-ai/ludwig/issues/2988
      """
      input_features = [number_feature()]
      output_features = [binary_feature()]
  
      _train_and_predict_gbm(
          input_features,
          output_features,
          tmpdir,
          local_backend,
          boosting_type="goss",
          bagging_freq=5,
      )
  
imports: import os
  import numpy
  import pytest
  from ludwig.api import LudwigModel
  from ludwig.constants import INPUT_FEATURES, MODEL_TYPE, OUTPUT_FEATURES, TRAINER
  from ludwig.error import ConfigValidationError
  from ludwig.schema.model_types.base import ModelConfig
  from tests.integration_tests import synthetic_test_data
  from tests.integration_tests.utils import binary_feature
  from tests.integration_tests.utils import category_feature
  from tests.integration_tests.utils import generate_data, number_feature, text_feature
label_desc: Use image node_id 24 for calling a global function with example usage: test_goss_deactivate_bagging(tmpdir, local_backend) without return types