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 WandBLogger",
      ):
          wrapper(mock_engine, mock_logger, Events.ITERATION_STARTED)
  
file_path: ignite/tests/ignite/contrib/handlers/test_wandb_logger.py
imports: from unittest.mock import call, MagicMock
  import pytest
  import torch
  from ignite.contrib.handlers.wandb_logger import global_step_from_engine, OptimizerParamsHandler, OutputHandler, WandBLogger
  from ignite.engine import Events, State
label_desc: Use image node_id 3 for calling a global function with example usage: test_output_handler_with_wrong_logger_type() without return types