code: def test_early_stopping_args():
      print("Check arguments to H2OAutoML class")
      ds = import_dataset()
      aml = H2OAutoML(
          project_name="py_aml0",
          stopping_rounds=3,
          stopping_tolerance=0.001,
          stopping_metric="auc",
          max_models=max_models,
          seed=1234,
          exclude_algos=["DeepLearning"],
      )
      aml.train(y=ds.target, training_frame=ds.train)
      assert aml.project_name == "py_aml0", "Project name is not set"
      assert aml.stopping_rounds == 3, "stopping_rounds is not set to 3"
      assert (
          aml.stopping_tolerance == 0.001
      ), "stopping_tolerance is not set to 0.001"
      assert (
          aml.stopping_metric == "auc"
      ), "stopping_metrics is not set to `auc`"
      assert aml.max_models == 2, "max_models is not set to 2"
      assert aml.seed == 1234, "seed is not set to `1234`"
      print("Check leaderboard")
      print(aml.leaderboard)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_early_stopping.py
imports: import sys, os
  from h2o.exceptions import H2OJobCancelled
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import import_dataset, get_partitioned_model_names
label_desc: Use image node_id 2 for calling a global function with example usage: test_early_stopping_args() without return types