code: def test_opt_params_handler_on_non_torch_optimizers():
      tensor = torch.zeros([1], requires_grad=True)
      base_optimizer = torch.optim.SGD([tensor], lr=0.1234)
      optimizer = MockFP16DeepSpeedZeroOptimizer(base_optimizer)
      handler = DummyOptParamsHandler(
          optimizer=optimizer, param_name="lr"
      )
      res = handler(engine=None, logger=None, event_name=None)
      assert isinstance(res, dict)
      assert "lr/group_0" in res and res["lr/group_0"] == 0.1234
  
imports: from typing import Any, Union
  from unittest.mock import call, MagicMock
  import pytest
  import torch
  from ignite.contrib.handlers.base_logger import BaseLogger, BaseOptimizerParamsHandler, BaseOutputHandler, BaseWeightsHandler, BaseWeightsScalarHandler
  from ignite.engine import Engine, Events, EventsList, State
  from tests.ignite.contrib.handlers import MockFP16DeepSpeedZeroOptimizer
label_desc: Use image node_id 4 for calling a global function with example usage: test_opt_params_handler_on_non_torch_optimizers() without return types