def METHOD_NAME(tmpdir):
    """Tests that the path is correct even when there is no logger."""
    expected = os.path.join(tmpdir)
    model = TestModel(expected)
    trainer = Trainer(default_root_dir=tmpdir, max_steps=2, logger=False, enable_checkpointing=False)
    assert trainer.log_dir == expected
    trainer.fit(model)
    assert trainer.log_dir == expected