code: def test_optimizer_params_handler_wrong_setup():
      with pytest.raises(TypeError):
          OptimizerParamsHandler(optimizer=None)
  
      optimizer = MagicMock(spec=torch.optim.Optimizer)
      handler = OptimizerParamsHandler(optimizer=optimizer)
  
      mock_logger = MagicMock()
      mock_engine = MagicMock()
      with pytest.raises(
          TypeError,
          match="Handler OptimizerParamsHandler works only with MLflowLogger",
      ):
          handler(mock_engine, mock_logger, Events.ITERATION_STARTED)
  
file_path: ignite/tests/ignite/contrib/handlers/test_mlflow_logger.py
imports: import sys
  from unittest.mock import call, MagicMock
  import pytest
  import torch
  from ignite.contrib.handlers.mlflow_logger import global_step_from_engine, MLflowLogger, OptimizerParamsHandler, OutputHandler
  from ignite.engine import Engine, Events, State
label_desc: Use image node_id 9 for calling a global function with example usage: test_optimizer_params_handler_wrong_setup() without return types