def METHOD_NAME(tmpdir, name):
    """Verify that None or empty name works."""
    logger = CSVLogger(root_dir=tmpdir, name=name)
    logger.log_metrics({"a": 1})
    logger.save()
    assert os.path.normpath(logger._root_dir) == tmpdir  # use os.path.normpath to handle trailing /
    assert os.listdir(tmpdir / "version_0")