code: def test_skip_on_fast_dev_run_tuner(tmpdir):
      """Test that tuner algorithms are skipped if fast dev run is enabled."""
      model = BoringModel()
      model.lr = 0.1  # avoid no-lr-found exception
      model.batch_size = 8
      trainer = Trainer(
          default_root_dir=tmpdir,
          max_epochs=2,
          fast_dev_run=True,
      )
      tuner = Tuner(trainer)
  
      with pytest.warns(
          UserWarning,
          match="Skipping learning rate finder since `fast_dev_run` is enabled.",
      ):
          tuner.lr_find(model)
  
      with pytest.warns(
          UserWarning,
          match="Skipping batch size scaler since `fast_dev_run` is enabled.",
      ):
          tuner.scale_batch_size(model)
  
file_path: pytorch-lightning/tests/tests_pytorch/trainer/flags/test_fast_dev_run.py
imports: import os
  from unittest.mock import Mock
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import EarlyStopping, ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import TensorBoardLogger
  from lightning.pytorch.loggers.logger import DummyLogger
  from lightning.pytorch.tuner.tuning import Tuner
label_desc: Use image node_id 1 for calling a global function with example usage: test_skip_on_fast_dev_run_tuner(tmpdir) without return types