code: def h2o_H2OFrame_cummax():
      """
      Python API test: h2o.frame.H2OFrame.cummax(axis=0), h2o.frame.H2OFrame.cummin(axis=0),
      h2o.frame.H2OFrame.cumprod(axis=0), h2o.frame.H2OFrame.cumsum(axis=0)
  
      Copied from pyunit_cumsum_cumprod_cummin_cummax.py
      """
      python_object = [list(range(1, 10)), list(range(9, 0, -1))]
      python_object_transpose = np.transpose(python_object)
      foo = h2o.H2OFrame(python_obj=python_object_transpose)
  
      cummax_col = foo.cummax(axis=0)
      cummin_col = foo.cummin(axis=0)
      cumprod_col = foo.cumprod(axis=0)
      cumsum_col = foo.cumsum(axis=0)
  
      # check return types
      assert_is_type(cummax_col, H2OFrame)
      assert_is_type(cummin_col, H2OFrame)
      assert_is_type(cumprod_col, H2OFrame)
      assert_is_type(cumsum_col, H2OFrame)
  
      # compare results of cum operations
      checkOpsCorrect(foo, cummax_col, max)  # cummax
      checkOpsCorrect(foo, cummin_col, min)  # cummin
      checkOpsCorrect(foo, cumprod_col, operator.mul)  # cumprod
      checkOpsCorrect(foo, cumsum_col, operator.add)
  
file_path: h2o-3/h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_cummax_cummin_cumprod_cumsum_large.py
imports: import sys
  from tests import pyunit_utils
  import h2o
  import numpy
  from h2o.utils.typechecks import assert_is_type
  from h2o.frame import H2OFrame
  import operator
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_cummax() without return types