code: def h2o_H2OFrame_head():
      """
      Python API test: h2o.frame.H2OFrame.head(rows=10, cols=200)
      """
      frame = h2o.import_file(
          path=pyunit_utils.locate("smalldata/iris/iris.csv"),
          col_types=[
              "numeric",
              "numeric",
              "numeric",
              "numeric",
              "string",
          ],
      )
      rowNum = randrange(1, frame.nrow)
      colNum = randrange(1, frame.ncol)
      newFrame = frame.head(rows=rowNum, cols=colNum)
  
      assert_is_type(newFrame, H2OFrame)  # check return type
      assert newFrame.dim == [
          rowNum,
          colNum,
      ], "h2o.H2OFrame.head() command is not working."
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from random import randrange
  from h2o.frame import H2OFrame
  from h2o.utils.typechecks import assert_is_type
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_head() without return types