code: def test_mlflow_logger_with_unexpected_characters(
      mlflow_mock, tmp_path
  ):
      """Test that the logger raises warning with special characters not accepted by MLFlow."""
      logger = MLFlowLogger("test", save_dir=str(tmp_path))
      metrics = {"[some_metric]": 10}
  
      with pytest.warns(
          RuntimeWarning, match="special characters in metric name"
      ):
          logger.log_metrics(metrics)
  
imports: import os
  from unittest import mock
  from unittest.mock import MagicMock, Mock
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers.mlflow import _MLFLOW_AVAILABLE, MLFlowLogger, _get_resolve_tags
label_desc: Use image node_id 8 for calling a global function with example usage: test_mlflow_logger_with_unexpected_characters(mlflow_mock, tmp_path) without return types