code: def uplift_binomial_model(ModelType, custom_metric_func):
      (ftrain, fvalid, ftest) = dataset_uplift()
      params = {"treatment_column": "treatment"}
      response_column = "outcome"
      model = ModelType(
          model_id="uplift_binomial",
          ntrees=3,
          max_depth=5,
          score_each_iteration=True,
          custom_metric_func=custom_metric_func,
          **params,
      )
      model.train(
          y=response_column,
          x=ftrain.names,
          training_frame=ftrain,
          validation_frame=fvalid,
      )
      return model, ftest
  
imports: import h2o
  from .None import locate
label_desc: Use image node_id 11 for calling a global function with example usage: uplift_binomial_model(ModelType, custom_metric_func) and returns: model,  ftest