def METHOD_NAME(tmpdir):
    """Tests that the path is correct even when there is a custom callback."""
    expected = os.path.join(tmpdir, "lightning_logs", "version_0")
    model = TestModel(expected)
    trainer = Trainer(
        default_root_dir=tmpdir, max_steps=2, callbacks=[ModelCheckpoint(dirpath=os.path.join(tmpdir, "ckpts"))]
    )
    assert trainer.log_dir == expected
    trainer.fit(model)
    assert trainer.log_dir == expected