code: def test_mlflow_logger_with_long_param_value(mlflow_mock, tmp_path):
      """Test that long parameter values are truncated to 250 characters."""
  
      def _check_value_length(value, *args, **kwargs):
          assert len(value) <= 250
  
      mlflow_mock.entities.Param.side_effect = _check_value_length
  
      logger = MLFlowLogger("test", save_dir=str(tmp_path))
  
      params = {"test": "test_param" * 50}
      logger.log_hyperparams(params)
  
      # assert_called_once_with() won't properly check the parameter value.
      logger.experiment.log_batch.assert_called_once()
  
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 10 for calling a global function with example usage: test_mlflow_logger_with_long_param_value(mlflow_mock, tmp_path) without return types