code: def test_no_name(tmp_path, name):
      """Verify that None or empty name works."""
      logger = CSVLogger(root_dir=tmp_path, name=name)
      logger.log_metrics({"a": 1})
      logger.save()
      assert os.path.normpath(logger._root_dir) == str(
          tmp_path
      )  # use os.path.normpath to handle trailing /
      assert os.listdir(tmp_path / "version_0")
  
file_path: pytorch-lightning/tests/tests_fabric/loggers/test_csv.py
imports: import os
  from unittest.mock import MagicMock
  import pytest
  import torch
  from lightning.fabric.loggers import CSVLogger
  from lightning.fabric.loggers.csv_logs import _ExperimentWriter
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_name(tmp_path, name) without return types