code: def __init__(self, pattern):
      logging.Handler.__init__(self)
      self.pattern = pattern
      self.history = defaultdict(lambda: 0)
  
file_path: Fiona/tests/test_transactions.py
imports: from collections import defaultdict
  import logging
  import os
  import pytest
  from random import uniform, randint
  import fiona
  from fiona.model import Feature
  import fiona.ogrext
  from tests.conftest import requires_gdal2
label_desc: Use image node_id 1 to create a new DebugHandler object from inherited base classes: logging with example: obj = DebugHandler(pattern)