code: def test_log_dir_from_logger_log_dir(logger_cls, tmp_path):
      logger = logger_cls(tmp_path / "log_dir")
      trainer = Trainer(default_root_dir=tmp_path, logger=logger)
      assert trainer.log_dir == logger.log_dir
  
file_path: pytorch-lightning/tests/tests_pytorch/trainer/properties/test_log_dir.py
imports: import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import CSVLogger, TensorBoardLogger
label_desc: Use image node_id 8 for calling a global function with example usage: test_log_dir_from_logger_log_dir(logger_cls, tmp_path) without return types