code: def test_custom_metric_computation_binomial():
      (model, _) = binomial_model(
          H2OGeneralizedLinearEstimator, custom_rmse_mm()
      )
      assert_custom_metric(model, "RMSE")
  
      (model, _) = binomial_model(
          H2OGeneralizedLinearEstimator, custom_logloss_mm()
      )
      assert_custom_metric(model, "logloss")
  
file_path: h2o-3/h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6160_custom_metric.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from tests.pyunit_utils import CustomMaeFunc, CustomRmseFunc, CustomLoglossFunc, dataset_prostate, dataset_iris
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 9 for calling a global function with example usage: test_custom_metric_computation_binomial() without return types