code: def __exit__(self, type, value, traceback):
      self.logger.removeHandler(self)
      self.logger.setLevel(self.original_level)
      self.logger.disabled = self.original_disabled
      self.logger.propagate = self.original_propagate
  
      return self
  
imports: import sys
  import logging
  import timeit
  from functools import wraps
  from collections.abc import Mapping, Callable
  import warnings
  from logging import PercentStyle
label_desc: Use image node_id 3 for calling the CapturingLogHandler obj's underlying member method code with example usage: obj.__exit__(type, value, traceback) and returns: self