code: def test_rich_progress_bar_metrics_fast_dev_run(tmp_path):
      """Test that `v_num` does not appear in the progress bar when a dummy logger is used (fast-dev-run)."""
      progress_bar = RichProgressBar()
      trainer = Trainer(
          default_root_dir=tmp_path,
          fast_dev_run=True,
          callbacks=progress_bar,
      )
      model = BoringModel()
      trainer.fit(model)
      assert isinstance(trainer.logger, DummyLogger)
      train_progress_bar_id = progress_bar.train_progress_bar_id
      val_progress_bar_id = progress_bar.val_progress_bar_id
      rendered = progress_bar.progress.columns[-1]._renderable_cache
      assert "v_num" not in rendered[train_progress_bar_id][1]
      assert "v_num" not in rendered[val_progress_bar_id][1]
  
imports: import pickle
  from collections import defaultdict
  from unittest import mock
  from unittest.mock import DEFAULT, Mock
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import ProgressBar, RichProgressBar
  from lightning.pytorch.callbacks.progress.rich_progress import RichProgressBarTheme
  from lightning.pytorch.demos.boring_classes import BoringModel, RandomDataset, RandomIterableDataset
  from lightning.pytorch.loggers import CSVLogger
  from lightning.pytorch.loggers.logger import DummyLogger
  from tests_pytorch.helpers.runif import RunIf
  from torch.utils.data import DataLoader
label_desc: Use image node_id 15 for calling a global function with example usage: test_rich_progress_bar_metrics_fast_dev_run(tmp_path) without return types