code: def as_mojo_model(model):
      mojo_path = tempfile.mkdtemp()
      mojo_path = model.save_mojo(mojo_path)
      return h2o.import_mojo(mojo_path)
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  import tempfile
  from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: as_mojo_model(model) and returns: h2o