code: def test_mlflow_experiment_id_retrieved_once(
      _, mlflow_mock, tmp_path
  ):
      """Test that the logger experiment_id retrieved only once."""
      logger = MLFlowLogger("test", save_dir=str(tmp_path))
      _ = logger.experiment
      _ = logger.experiment
      _ = logger.experiment
      assert logger.experiment.get_experiment_by_name.call_count == 1
  
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 7 for calling a global function with example usage: test_mlflow_experiment_id_retrieved_once(_, mlflow_mock, tmp_path) without return types