code: def __exit__(self, et, ev, tb):
      if self.level is not None:
          self.logger.setLevel(self.old_level)
      if self.handler:
          self.logger.removeHandler(self.handler)
      if self.handler and self.close:
          self.handler.close()
  
file_path: h2o-3/h2o-py/tests/testdir_utils/pyunit_logger.py
imports: import sys
  import logging
  from tests import pyunit_utils
label_desc: Use image node_id 3 for calling the LoggingContext obj's underlying member method code with example usage: obj.__exit__(et, ev, tb) without return types