code: def test_output_handler_with_wrong_logger_type():
      wrapper = OutputHandler("tag", output_transform=lambda x: x)
  
      mock_logger = MagicMock()
      mock_engine = MagicMock()
      with pytest.raises(
          RuntimeError,
          match="Handler OutputHandler works only with ClearMLLogger",
      ):
          wrapper(mock_engine, mock_logger, Events.ITERATION_STARTED)
  
imports: import math
  import os
  from collections import defaultdict
  from unittest.mock import ANY, call, MagicMock, patch
  import clearml
  import pytest
  import torch
  from clearml.binding.frameworks import WeightsFileHandler
  from clearml.model import Framework
  import ignite.distributed
  from ignite.contrib.handlers.clearml_logger import ClearMLLogger, ClearMLSaver, global_step_from_engine, GradsHistHandler, GradsScalarHandler, OptimizerParamsHandler, OutputHandler, WeightsHistHandler, WeightsScalarHandler
  from ignite.engine import Engine, Events, State
  from ignite.handlers import Checkpoint
label_desc: Use image node_id 4 for calling a global function with example usage: test_output_handler_with_wrong_logger_type() without return types