code: def custom_mae_mm():
      return h2o.upload_custom_metric(
          CustomMaeFunc, func_name="mae-custom", func_file="mm_mae.py"
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/xgboost/pyunit_xgboost_custom_metric.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from tests.pyunit_utils import CustomMaeFunc, CustomRmseFunc, assert_correct_custom_metric, regression_model, multinomial_model, binomial_model
  from h2o.estimators import H2OXGBoostEstimator
  from h2o.exceptions import H2OResponseError
label_desc: Use image node_id 1 for calling a global function with example usage: custom_mae_mm() and returns: h2o