code: def test_logging_handler(mocker):
      mocker.patch.object(ArgillaHandler, "emit", autospec=True)
      handler = ArgillaHandler()
  
      logger = logging.getLogger(__name__)
      logger.handlers = [handler]
      logger.setLevel(logging.INFO)  # Force trace
      logger.info("This is a test")
      handler.emit.assert_called()
  
file_path: argilla/tests/unit/test_logging.py
imports: import logging
  import pytest
  from argilla.logging import ArgillaHandler, LoggingMixin
label_desc: Use image node_id 2 for calling a global function with example usage: test_logging_handler(mocker) without return types