code: def perform_group_by(h2oFrame, na):
      """
      Given a H2OFrame h2oFrame, and the na treatment, perform chained group by aggregation and return the
      results of aggregations in an H2OFrame.
  
      :param h2oFrame:
      :param na:
      :return:
      """
      grouped = h2oFrame.group_by("class")
      grouped.count(na=na).min(na=na).max(na=na).mean(na=na).var(
          na=na
      ).sd(na=na).ss(na=na).sum(na=na)
      print(grouped.get_frame())
      return grouped.get_frame()
  
file_path: h2o-3/h2o-py/tests/testdir_munging/pyunit_groupby_allOps.py
imports: import sys
  import h2o
  import math
  from tests import pyunit_utils
  from h2o.utils.typechecks import assert_is_type
  from h2o.frame import H2OFrame
label_desc: Use image node_id 3 for calling a global function with example usage: perform_group_by(h2oFrame, na) and returns: grouped