code: def constant_col_rf():
      train = h2o.import_file(
          path=pyunit_utils.locate("smalldata/iris/iris_wheader.csv")
      )
      train["constantCol"] = 1
  
      # Run DRF, which should run successfully with constant response when check_constant_response is set to false
      my_rf = H2ORandomForestEstimator(check_constant_response=False)
      my_rf.train(
          x=list(range(1, 5)), y="constantCol", training_frame=train
      )
  
imports: from builtins import range
  import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.random_forest import H2ORandomForestEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: constant_col_rf() without return types