code: def is_consistent(train_rows, out_frame):
      """Check if a number of observations assigned to exemplars is equal to rows in train set"""
      return (
          out_frame.sum(return_frame=True)["counts"].round()
          == train_rows
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/aggregator/pyunit_cat_encoding.py
imports: import h2o
  from tests import pyunit_utils
  from h2o.frame import H2OFrame
  from h2o.estimators.aggregator import H2OAggregatorEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: is_consistent(train_rows, out_frame) and returns: unknown