code: def test_log_dir_multiple_loggers(tmp_path):
      """Tests that the logdir equals the default_root_dir when trainer has multiple loggers."""
      default_root_dir = tmp_path / "default_root_dir"
      save_dir = tmp_path / "save_dir"
      expected = str(
          tmp_path / "save_dir" / "custom_logs" / "version_0"
      )
      model = TestModel(expected)
      trainer = Trainer(
          default_root_dir=default_root_dir,
          max_steps=2,
          logger=[
              TensorBoardLogger(save_dir=save_dir, name="custom_logs"),
              CSVLogger(tmp_path),
          ],
      )
  
      assert trainer.log_dir == expected
      trainer.fit(model)
      assert trainer.log_dir == expected
  
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 7 for calling a global function with example usage: test_log_dir_multiple_loggers(tmp_path) without return types