code: def h2o_H2OFrame_transpose():
      """
      Python API test: h2o.frame.H2OFrame.transpose()
      """
      row_num = randrange(1, 10)
      col_num = randrange(1, 10)
      python_lists = np.random.randint(-5, 5, (row_num, col_num))
      h2oframe = h2o.H2OFrame(python_obj=python_lists)
      newFrame = h2oframe.transpose()
  
      assert_is_type(newFrame, H2OFrame)  # check return type
      # check shape
      assert newFrame.shape == (
          h2oframe.ncol,
          h2oframe.nrow,
      ), "h2o.H2OFrame.transpose() command is not working."
      # check content
      pyunit_utils.compare_frames(
          h2oframe,
          newFrame.transpose(),
          h2oframe.nrow,
          tol_time=0,
          tol_numeric=1e-6,
      )
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.utils.typechecks import assert_is_type
  from random import randrange
  import numpy
  from h2o.frame import H2OFrame
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_transpose() without return types