code: def __enter__(self):
      if self.level is not None:
          self.old_level = self.logger.level
          self.logger.setLevel(self.level)
      if self.handler:
          self.logger.addHandler(self.handler)
  
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 2 for calling the LoggingContext obj's underlying member method code with example usage: obj.__enter__() without return types