code: def predGLRM(dataset, model):
      """
      Simple method to train GLRM model and return prediction result.
  
      :param dataset: dataset to be scored and trained on
      :param model: glrm model to be trained
      :return: reconstructed dataframe.
      """
      model.train(x=dataset.names, training_frame=dataset)
      return model.predict(dataset)
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: predGLRM(dataset, model) and returns: model