code: def test_leaderboard_for_multiclass_with_custom_sorting():
      print("Check leaderboard for multiclass sort by logloss")
      ds = import_dataset("multiclass", split=False)
      exclude_algos = ["DeepLearning"]
      aml = H2OAutoML(
          project_name="py_aml_lb_test_custom_multiclass_sort",
          seed=automl_seed,
          max_models=10,
          nfolds=2,
          stopping_rounds=1,
          stopping_tolerance=0.5,
          exclude_algos=exclude_algos,
          sort_metric="logloss",
      )
      aml.train(y=ds.target, training_frame=ds.train)
  
      check_leaderboard(
          aml,
          exclude_algos,
          ["logloss", "mean_per_class_error", "rmse", "mse"],
          "logloss",
      )
  
imports: import os
  import sys
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _leaderboard_utils import check_leaderboard
  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_leaderboard_for_multiclass_with_custom_sorting() without return types