code: def _mean_var(frame, weights=None):
      """
      Compute the (weighted) mean and variance.
  
      :param frame: Single column H2OFrame.
      :param weights: optional weights column.
      :returns: The (weighted) mean and variance.
      """
      return _colmean(frame), frame.var()
  
file_path: h2o-3/h2o-py/h2o/model/models/regression.py
imports: from h2o.exceptions import H2OValueError
  from h2o.model import ModelBase
  from h2o.model.extensions import has_extension
  from h2o.utils.compatibility import *
  from h2o.utils.shared_utils import _colmean
  from h2o.utils.typechecks import assert_is_type
label_desc: Use image node_id 1 for calling a global function with example usage: _mean_var(frame, weights) and returns: _colmean,  frame