code: def test_automatic_versioning(tmp_path):
      """Verify that automatic versioning works."""
      (tmp_path / "exp" / "version_0").mkdir(parents=True)
      (tmp_path / "exp" / "version_1").mkdir()
      (tmp_path / "exp" / "version_nonumber").mkdir()
      (tmp_path / "exp" / "other").mkdir()
  
      logger = CSVLogger(save_dir=tmp_path, name="exp")
  
      assert logger.version == 2
  
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 1 for calling a global function with example usage: test_automatic_versioning(tmp_path) without return types