code: def assertMonotonePrediction(pred_frame):
      prediction = pred_frame[0].as_data_frame(use_pandas=True)
      num_row = pred_frame.nrow
      preds = prediction["predict"]
      for ind in range(1, num_row):
          assert preds[ind] >= preds[ind], (
              "prediction at row {0} is {1} and it should exceed prediction at row {2} with"
              " value {3} but is not.".format(
                  ind, preds[ind], ind - 1, preds[ind - 1]
              )
          )
  
imports: import sys, os
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: assertMonotonePrediction(pred_frame) without return types