code: def multinomial_model(ModelType, custom_metric_func, params={}):
      (ftrain, fvalid, ftest) = dataset_iris()
      model = ModelType(
          model_id="multinomial",
          score_each_iteration=True,
          custom_metric_func=custom_metric_func,
          **params,
      )
      model.train(
          y="class",
          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 10 for calling a global function with example usage: multinomial_model(ModelType, custom_metric_func, params) and returns: model,  ftest