code: def test_manual_versioning(tmp_path):
      """Verify that manual versioning works."""
      root_dir = tmp_path / "exp"
      (root_dir / "version_0").mkdir(parents=True)
      (root_dir / "version_1").mkdir()
      (root_dir / "version_2").mkdir()
  
      logger = CSVLogger(save_dir=tmp_path, name="exp", version=1)
  
      assert logger.version == 1
  
imports: import os
  from unittest.mock import MagicMock
  import fsspec
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.core.saving import load_hparams_from_yaml
  from lightning.pytorch.loggers import CSVLogger
  from lightning.pytorch.loggers.csv_logs import ExperimentWriter
  from tests_pytorch.helpers.datamodules import ClassifDataModule
  from tests_pytorch.helpers.runif import RunIf
  from tests_pytorch.helpers.simple_models import ClassificationModel
label_desc: Use image node_id 2 for calling a global function with example usage: test_manual_versioning(tmp_path) without return types