code: def test_leaderboard_with_automl_uses_eventlog():
      train = h2o.upload_file(
          pyunit_utils.locate("smalldata/titanic/titanic_expanded.csv")
      )
      train["name"] = train["name"].asfactor()
      y = "fare"
  
      aml1 = H2OAutoML(seed=1234, max_models=5, project_name="a1")
      aml1.train(y=y, training_frame=train)
  
      aml2 = H2OAutoML(seed=234, max_models=5, project_name="a1")
      aml2.train(y=y, training_frame=train)
  
      assert (
          aml2.event_log["message"]
          .grep("New models will be added")
          .nrow
          > 0
      )
      assert aml1.event_log["message"].grep("Adding model ").nrow > 0
      assert aml2.event_log["message"].grep("Adding model ").nrow > 0
  
file_path: h2o-3/h2o-py/tests/testdir_misc/explain/pyunit_make_leaderboard.py
imports: import os
  import sys
  import h2o
  import h2o.exceptions
  from tests import pyunit_utils, dataset_prostate, CustomMaeFunc
  from h2o.automl import H2OAutoML
  from h2o.estimators import *
  from h2o.grid import H2OGridSearch
label_desc: Use image node_id 1 for calling a global function with example usage: test_leaderboard_with_automl_uses_eventlog() without return types