code: def test_params_can_be_set_as_attributes():
      aml = H2OAutoML()
      aml.max_models = 4
      aml.seed = 42
      aml.exclude_algos = ["StackedEnsemble"]
  
      ds = import_dataset()
      aml.train(
          y=ds.target,
          training_frame=ds.train,
          validation_frame=ds.valid,
      )
      assert aml.leaderboard.nrows == aml.max_models == 4
      assert aml.project_name is not None
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_params_attributes.py
imports: import os
  import sys
  from h2o.exceptions import H2OValueError
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import import_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: test_params_can_be_set_as_attributes() without return types