code: def emit(self, record):
      if record.levelno >= 40:
          self.errorcount += 1
  
file_path: h2o-3/h2o-py/tests/testdir_utils/pyunit_h2oconfig.py
imports: import logging
  import os
  import h2o
  import h2o.utils.config
  from tests import TemporaryDirectory, pyunit_utils
label_desc: Use image node_id 2 for calling the LogErrorCounter obj's underlying member method code with example usage: obj.emit(record) without return types