code: def test_tensorboard_automatic_versioning(tmp_path):
      """Verify that automatic versioning works."""
      root_dir = tmp_path / "tb_versioning"
      root_dir.mkdir()
      (root_dir / "version_0").mkdir()
      (root_dir / "version_1").mkdir()
      (root_dir / "version_nonumber").mkdir()
      (root_dir / "other").mkdir()
  
      logger = TensorBoardLogger(
          root_dir=tmp_path, name="tb_versioning"
      )
      assert logger.version == 2
  
imports: import logging
  import os
  from argparse import Namespace
  from unittest import mock
  from unittest.mock import Mock
  import numpy
  import pytest
  import torch
  from lightning.fabric.loggers import TensorBoardLogger
  from lightning.fabric.loggers.tensorboard import _TENSORBOARD_AVAILABLE
  from lightning.fabric.wrappers import _FabricModule
  from tests_fabric.test_fabric import BoringModel
label_desc: Use image node_id 1 for calling a global function with example usage: test_tensorboard_automatic_versioning(tmp_path) without return types