code: def test_predict_on_train_set():
      print("Check predict, leader, and leaderboard")
      print("AutoML run with x not provided and train set only")
      ds = import_dataset()
      aml = H2OAutoML(
          project_name="py_aml6",
          stopping_rounds=3,
          stopping_tolerance=0.001,
          stopping_metric="AUC",
          max_models=max_models,
          seed=1234,
      )
      aml.train(y=ds.target, training_frame=ds.train)
      print("Check leaderboard")
      print(aml.leaderboard)
      print("Check predictions")
      print(aml.predict(ds.train))
  
imports: import sys, os
  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_predict_on_train_set() without return types