code: def test_leaderboard_for_binary():
      print("Check leaderboard for Binomial with default sorting")
      ds = import_dataset("binary", split=False)
      exclude_algos = ["GBM", "DeepLearning"]
      aml = H2OAutoML(
          project_name="py_aml_lb_test_default_binom_sort",
          seed=automl_seed,
          max_models=8,
          nfolds=2,
          stopping_rounds=1,
          stopping_tolerance=0.5,
          exclude_algos=exclude_algos,
      )
      aml.train(y=ds.target, training_frame=ds.train)
  
      check_leaderboard(
          aml,
          exclude_algos,
          [
              "auc",
              "logloss",
              "aucpr",
              "mean_per_class_error",
              "rmse",
              "mse",
          ],
          "auc",
          True,
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/leaderboard/pyunit_automl_leaderboard_binary.py
imports: import os
  import sys
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _leaderboard_utils import check_leaderboard, check_model_property
  from _automl_utils import import_dataset, get_partitioned_model_names
label_desc: Use image node_id 1 for calling a global function with example usage: test_leaderboard_for_binary() without return types