code: def test_named_version(tmp_path):
      """Verify that manual versioning works for string versions, e.g. '2020-02-05-162402'."""
      exp_name = "exp"
      (tmp_path / exp_name).mkdir()
      expected_version = "2020-02-05-162402"
  
      logger = CSVLogger(
          root_dir=tmp_path, name=exp_name, version=expected_version
      )
      logger.log_metrics({"a": 1, "b": 2})
      logger.save()
      assert logger.version == expected_version
      assert os.listdir(tmp_path / exp_name) == [expected_version]
      assert os.listdir(tmp_path / exp_name / expected_version)
  
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 4 for calling a global function with example usage: test_named_version(tmp_path) without return types