code: def correct_num_exemplars(out_frame, **kwargs):
      tol = kwargs.get("rel_tol_num_exemplars", 0.5)
      target_exemplars = kwargs.get("target_num_exemplars", 5000)
      return (
          (1 - tol) * target_exemplars
          <= out_frame.nrows
          <= (1 + tol) * target_exemplars
      )
  
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 2 for calling a global function with example usage: correct_num_exemplars(out_frame) and returns: unknown