code: def test_tensorboard_log_metrics(tmp_path, step_idx):
      logger = TensorBoardLogger(tmp_path)
      metrics = {
          "float": 0.3,
          "int": 1,
          "FloatTensor": torch.tensor(0.1),
          "IntTensor": torch.tensor(1),
      }
      logger.log_metrics(metrics, step_idx)
  
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 8 for calling a global function with example usage: test_tensorboard_log_metrics(tmp_path, step_idx) without return types