code: def test_emit_no_warning_if_constructor_param_is_explicitly_set_to_default_value():
      train = h2o.import_file(
          pu.locate("smalldata/wine/winequality-redwhite-no-BOM.csv")
      )
      y = "quality"
      x = [
          "citric acid",
          "residual sugar",
          "chlorides",
          "free sulfur dioxide",
          "total sulfur dioxide",
          "density",
          "pH",
      ]
      gbm = H2OGradientBoostingEstimator(
          ntrees=1,
          offset_column=None,
          weights_column=None,
          fold_column=None,
      )
      with warnings.catch_warnings(record=True) as w:
          gbm.train(
              x=x,
              y=y,
              training_frame=train,
              offset_column="sulphates",
              weights_column="alcohol",
              fold_column="type",
          )
      assert len(w) == 0
      _assert_final_param_value("offset_column", "sulphates", gbm)
      _assert_final_param_value("weights_column", "alcohol", gbm)
      _assert_final_param_value("fold_column", "type", gbm)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/common/pyunit_train_params_validation.py
imports: import sys
  import warnings
  import h2o
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
  from tests import pyunit_utils
label_desc: Use image node_id 6 for calling a global function with example usage: test_emit_no_warning_if_constructor_param_is_explicitly_set_to_default_value() without return types