def test_no_logger(tmp_path, logger_value):
    """Test the cases where logger=None, logger=False, logger=[] are passed to Trainer."""
    trainer = Trainer(
        logger=logger_value,
        default_root_dir=tmp_path,
        max_steps=1,
    )
    assert trainer.logger is None
    assert trainer.loggers == []
    assert trainer.log_dir == str(tmp_path)
Test the cases where logger=None, logger=False, logger=[] are passed to Trainer.
tests/tests_pytorch/trainer/properties/test_loggers.py