code: def setUp(self):
      super().setUp()
      self.logger = logging.getLogger(__name__)
      self.handler = LogCountHandler()
      self.logger.addHandler(self.handler)
  
file_path: pelican/pelican/tests/test_log.py
imports: import logging
  import unittest
  from collections import defaultdict
  from contextlib import contextmanager
  from pelican import log
  from pelican.tests.support import LogCountHandler
label_desc: Use image node_id 1 for calling the TestLog obj's underlying member method code with example usage: obj.setUp() without return types