code: def test_frames_can_be_passed_to_constructor():
      ds = import_dataset()
  
      gbm = H2OGradientBoostingEstimator(
          ntrees=10,
          nfolds=0,
          seed=seed,
          training_frame=ds["train"],
          validation_frame=ds["valid"],
      )
      gbm.train(y=ds["target"])
  
      rf = H2ORandomForestEstimator(
          ntrees=10,
          nfolds=0,
          seed=seed,
          training_frame=ds["train"],
          validation_frame=ds["valid"],
      )
      rf.train(y=ds["target"])
  
      se = H2OStackedEnsembleEstimator(
          base_models=[gbm, rf],
          seed=seed,
          training_frame=ds["train"],
          validation_frame=ds["valid"],
          blending_frame=ds["blend"],
      )
      se.train(y=ds["target"])
  
      assert se.auc() > 0
  
file_path: h2o-3/h2o-py/tests/testdir_algos/stackedensemble/pyunit_stackedensemble_validate_frames.py
imports: import h2o
  import sys
  from h2o.estimators import H2OGradientBoostingEstimator, H2ORandomForestEstimator
  from h2o.exceptions import H2OTypeError
  from h2o.estimators.stackedensemble import H2OStackedEnsembleEstimator
  from tests import pyunit_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_frames_can_be_passed_to_constructor() without return types