code: def __init__(self, matcher):
      # BufferingHandler takes a "capacity" argument
      # so as to know when to flush. As we're overriding
      # shouldFlush anyway, we can set a capacity of zero.
      # You can call flush() manually to clear out the
      # buffer.
      super().__init__(0)
      self.matcher = matcher
  
imports: import contextlib
  import shutil
  import tempfile
  import warnings
  from logging.handlers import BufferingHandler
  import numpy
  import numpy.random
  import pytensor
  from numpy.testing import assert_array_less
  from pytensor.gradient import verify_grad
  import pymc
  from pymc.testing import fast_unstable_sampling_mode
  from tests.models import mv_simple, mv_simple_coarse
label_desc: Use image node_id 1 to create a new LoggingHandler object from inherited base classes: BufferingHandler with example: obj = LoggingHandler(matcher)